83Plus:BCALLs:409F

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

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

Synopsis

Official Name: RndGuard

BCALL Address: 409F

Rounds OP1 to 10 digits.

Inputs

  • OP1 = floating point

Outputs

  • OP1 = OP1 rounded to the 10th digit

Destroys

  • AF, BC, DE, HL

Example

B_CALL OP1Set3  ;OP1=floating point 3
B_CALL SqRoot  ;returns with OP1=floating point 1.7320508075689
B_CALL RndGuard  ;returns with OP1=1.732050808