Advertisement
Guest User

Untitled

a guest
Nov 30th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 0.14 KB | None | 0 0
  1. FUNCTION ceil (x AS _FLOAT)
  2. DIM decimal AS _FLOAT
  3. decimal = x - FIX(x)
  4. ceil = FIX(x)
  5. IF decimal > 0 THEN ceil = ceil + 1
  6. END FUNCTION
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement