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




Applications are open for YC Summer 2019

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

Search: