• Check out the relaunch of our general collection, with classic designs and new ones by our very own Pissog!

DP IV calculator in TI 83+?

3. Ceiling functions are quite easy in TI-Basic. Here is the code:

Code:
:y→0-(int(0-x))

Note: y represents the variable you want to store the ceiling function in (if you don't want to store it, you could put something else instead of y and the arrow), and x represents the number you want to do a ceiling function on.

Shouldn't it be the other way around though?

Code:
:-(int(-x))→y
At least on the TI-84.
 
Shouldn't it be the other way around though?

Code:
:-(int(-x))→y
At least on the TI-84.

Yes, it should be. I am not sure if you need the zeroes before the minus signs or not. I don't know if not using the zeroes would cause a problem with negative numbers (the outer minus sign). My mistake on the variable order.

EDIT: The zeores are not necessary. Read here.
Anyway, -int(-X) is functionally equivalent to the so-called "ceiling function" (least integer ≥ X).
 
Back
Top