Jump to Real's How-to Main page

Get the remainder of a decimal

decimal d1 = 5.25
decimal d2
d2 = abs(truncate(d1,0) - d1)
MessageBox("",string(d2))

If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]