83Plus:BCALLs:40A2

From WikiTI
Revision as of 15:57, 1 May 2005 by Woozle (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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