Hacker News new | past | comments | ask | show | jobs | submit login

In perl5 it's easier:

    perl -Mbignum -e'print 9999999999999999.0 - 9999999999999998.0'
    1
The BigFloat solution on the website is suboptimal.



In Perl 6 even shorter than that:

    perl6 -e'print 9999999999999999.0 - 9999999999999998.0'
    1




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: