FIX

FIX (x)

Rounds x upwards to the nearest integer.

print "fix(1.1)  = "; fix(1.1)
print "fix(1.5)  = "; fix(1.5)
print "fix(1.9)  = "; fix(1.9)
print "fix(-1.1) = "; fix(-1.1)
print "fix(-1.5) = "; fix(-1.5)
print "fix(-1.9) = "; fix(-1.9)

' Difference to ceil with negative numbers
print "ceil(1.1)  = "; ceil(1.1)
print "ceil(1.5)  = "; ceil(1.5)
print "ceil(1.9)  = "; ceil(1.9)
print "ceil(-1.1) = "; ceil(-1.1)
print "ceil(-1.5) = "; ceil(-1.5)
print "ceil(-1.9) = "; ceil(-1.9)
Math
If there is insufficient information on this page and you wish learn more about FIX, please send an email to smallbasic@gmail.com. You can help to improve information about FIX by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.