Re: Bug, float is printed wrongly
Blake McBride <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.gnu.general |
|---|---|
| Message-ID | <CABwHSOtADjTwMyUouQTmXKy31vcb_Rv7ykXp3SHauLqqg5qWCA@mail.gmail.com> |
$ gst --version GNU Smalltalk version 3.2.92-dfe4b56 $ gst GNU Smalltalk ready st> 1e1 10.0 st> 1e0 1.0 st> 1e-1 0.1 st> 1e-2 0.01 st> 1e-3 0.001 st> 1e-4 0.00001 st> On Sat, Aug 11, 2018 at 1:05 PM Tommy Pettersson <[email protected]> wrote: > Hi, > > The float 1e-4 gets too many zeros when printed. This happens on version > 3.2.5 and on the current master branch at git:// > git.sv.gnu.org/smalltalk.git, > on both 32-bit and 64-bit. > > Example: > st> x := 1e-4 > 0.00001 > st> x+x > 0.0002 > > Kind regards, > Tommy > > _______________________________________________ > help-smalltalk mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-smalltalk >