Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Is 0.0 float or integer

Name: Anonymous 2009-03-21 8:13

Name: Anonymous 2010-05-31 11:13

>>38
The answer is obviously .125.

Name: Anonymous 2010-05-31 11:25

>>40
i'm saying either it shouldn't recognize 010.5, or it should interpret both numbers as octal.
Forced Inconsistency Of Code.

Name: Anonymous 2010-05-31 11:57

>>42
Well, yeah, it is FIOC, but still. Numbers with a decimal point are going to be, uh, decimal, right?

Name: Anonymous 2010-05-31 12:01

>>43
Not really, you can have a “decimal point” in any base.

Name: Anonymous 2010-05-31 12:16

>>44
Why is it that 0xDEAD.BEEF is illegal?

Name: Anonymous 2010-05-31 13:28

>>45
0xDEAD.0xBEEF

Name: Anonymous 2010-05-31 15:18

>>37
$ perl -le'print(010.5 - 010)'
77


There's more than one way™

Name: Anonymous 2010-05-31 15:45

>>44
"decimal point"
You're looking for "radix point."

Name: Anonymous 2010-05-31 16:35

>>48
s/>>44/>>43/ surely
I uniquoted “decimal point” for a reason. Perhaps if I'd used sic, you'd have understood.

Name: Anonymous 2010-05-31 16:46

>>47
What in the fuck?!

Name: Anonymous 2010-05-31 16:56

>>47
I am thoroughly confused. Care to explain what happened here?

Name: Anonymous 2010-05-31 16:57

>>51
Perl.

Name: Anonymous 2010-05-31 16:58

>>52
But why did it do that!?

Name: Anonymous 2010-05-31 17:00

>>53
Because Leisure Suit Larry Wall is a religious person and therefore appreciates some mystery in his language.

Name: Anonymous 2010-05-31 17:01

>>50,51
Well, as >>42 suggested, it doesn't recognize 010.5.  But being Perl, there are no syntax errors, only fallback interpretations.  So instead it gets read as 010 . 5 - 010, which means 8 5 concat 8 -.  85 - 8 = 77.

Name: Anonymous 2010-05-31 17:53

>>55
That is hideously disgusting. I'm glad I have no experience with that awful language.

Name: Anonymous 2010-05-31 18:01

>>54
ken sent me

Name: Anonymous 2010-06-01 1:17

>>56
Because you often try to use a radix point with octal literals?

The cute thing about this example is that it will never happen by accident.

Name: Anonymous 2010-06-01 5:08

>>55
>it gets read as 010 . 5 - 010, which means 8 5 concat 8 -.  85 - 8 = 77.
GENISU

Name: ​​​​​​​​​​ 2010-10-26 14:17

Name: Anonymous 2011-02-04 11:50

<

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List