| 
View
 

Basic4GL Fmod Function

Page history last edited by matthew 5 years ago

Basic4GL Fmod Function

 

  • Manually creating a modulo operator for the C64 here
  • An example of the fmod command in the C programming language here
  • Code Syntax Highlighting by Quick Highlighter

 

  1. ' Example of the Fmod (Floating Modulus) function in Basic4GL
  2. '
  3.  
  4. declare function fmod#(x#, y#)
  5.  
  6. function fmod#(x#, y#)
  7.     return (x# - Int(x# / y#) * y#)
  8. end function
  9.  
  10. printr fmod#(1.6, 1.2)
  11.  
  12. drawtext()

Comments (0)

You don't have permission to comment on this page.