This commit is contained in:
MarcusTL12
2019-09-12 16:48:06 +02:00
parent 4adc9cd975
commit f53043763f
3 changed files with 7 additions and 4 deletions

View File

@@ -26,8 +26,8 @@ function main()
# Integer division is done by div, fld or cld (floor divide/ceil divide)
# div rounds towards zero (1.5 -> 1, -2.7 -> -2)
# floor rounds downwards (1.5 -> 1, -2.7 -> -3)
# ceil rounds upwards (1.5 -> 2, -2.7 -> -2)
# floor rounds downwards (1.5 -> 1, -2.7 -> -3)
# ceil rounds upwards (1.5 -> 2, -2.7 -> -2)
c = div(a, b)
c = fld(a, b)
c = cld(a, b)