in reply to Re: int() function
in thread int() function
C:\>rakudo -e "say (1.15*170)+0.5" 196
That's interesting - I thought that raku was above producing that sort of braindead bullshit.
Is it rounding to the nearest integer ?
Or maybe it's doing decimal math ?
UPDATE: aaah ... I think I get it ... 1.15 is being evaluated as the rational value 115/100 ... right ?
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: int() function
by holli (Abbot) on Oct 24, 2020 at 17:17 UTC | |
by syphilis (Archbishop) on Oct 25, 2020 at 01:10 UTC |
In Section
Seekers of Perl Wisdom