# HG changeset patch # User William Astle # Date 1698726404 21600 # Node ID 1f2f6c2a1fde3abd657b2b8b64e842a969dc47c7 # Parent 1396fe221ff773b1a99e4d501a2811ec088774b5 Use correct decimal exponent instead of binary for int to float conversion diff -r 1396fe221ff7 -r 1f2f6c2a1fde src/fps.s --- a/src/fps.s Mon Oct 30 22:26:25 2023 -0600 +++ b/src/fps.s Mon Oct 30 22:26:44 2023 -0600 @@ -913,7 +913,7 @@ std fpa0+fpa.sig std fpa0+fpa.sig+2 sta fpa0+fpa.sig+4 - ldd #0x5f20 ; set exponent for decimal right of significand and 32 bit shifts + ldd #0x4920 ; set exponent for decimal right of 10 digit significand sta fpa0+fpa.exp ; save exponent stb fpa0+fpa.extra+4 ; save counter bra fps_fromint2 ; skip digit check on the first iteration since none need adjustment