83Plus:BCALLs:40A2
From WikiTI
Contents
Synopsis
Official Name: RnFx
BCALL Address: 40A2
Rounds OP1 to according to the FIX display setting.
Inputs
- OP1 = floating point
Outputs
- OP1 = OP1 rounded to the Nth decimal place
Destroys
- None
Example
Assuming the FIX setting was 3:
B_CALL OP1Set3 ;OP1=floating point 3 B_CALL SqRoot ;returns with OP1=floating point 1.7320508075689 B_CALL RnFx ;returns with OP1=1.732