• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks or on the Web, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, Slack, and browsed web pages. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.


Basic4GL Fmod Function

Page history last edited by matthew 3 years, 3 months 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. '
  4. declare function fmod#(x#, y#)
  6. function fmod#(x#, y#)
  7.     return (x# - Int(x# / y#) * y#)
  8. end function
  10. printr fmod#(1.6, 1.2)
  12. drawtext()

Comments (0)

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