For the record, OCaml does this too:
# string_of_float((float_of_string "3_151_592_653") +. 1.0);;
- : string = "3151592654."
Issac
On Sat, Jan 18, 2003 at 11:15:32AM -0800, Peter Jay Salzman wrote:
> perl is such a cool language. i never knew you can represent numbers
> this way:
>
>my $
i might. i know perl/tk and perl/gtk (both of which i think are also
cross platform).
tk is uglier than the ugliest sin, but gtk is beautiful. but then again
perl/tk is MUCH better documented than perl/gtk. i don't know anything
about wx, but perhaps i should look into it.
but to be quite fr
> >
> > C:\>type tmp.pl
> >my $number = 3_151_592_65;
> >print $number += 1000, "\n";
> >
> >
> > C:\>perl tmp.pl
> > 315160265
> >
> > - Original Message -
> > From: "Peter Jay Salzman" <[EMA
On Sat, Jan 18, 2003 at 02:19:05PM -0600, Jay Strauss wrote:
> It works on non-3 groups (pardon my M$)
Generally perl will not generate any warnings unless you ask for
them. With a -w or use warnings; . the not _always_ in your face
warning mode makes it a wonderful quick and dirty scripting
gt;
> - Original Message -
> From: "Peter Jay Salzman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, January 18, 2003 1:15 PM
> Subject: [vox-tech] perl never ceases to amaze me
>
>
> > perl is such a cool language.
rday, January 18, 2003 1:15 PM
Subject: [vox-tech] perl never ceases to amaze me
> perl is such a cool language. i never knew you can represent numbers
> this way:
>
>my $number = 3_151_592_653;
>print ++$number, "\n";
>
> i can easily see that $number r
perl is such a cool language. i never knew you can represent numbers
this way:
my $number = 3_151_592_653;
print ++$number, "\n";
i can easily see that $number represents "three billion one hundred
fifty one million five hundred ninety two thousand six hundred fifty
three". if, instead, i