News for hackers. Stuff that matters.
Re:NoJS – Creating a calculator with only HTML and CSS by nathell on Friday January 21, 2022 @10:00AM (#30024363)
Do yourself a favor and try dividing by zero!
Re:NoJS – Creating a calculator with only HTML and CSS by illegalmemory on Friday January 21, 2022 @11:51AM (#30026161)
99999 * 9999 also yields wrong result
Re:NoJS – Creating a calculator with only HTML and CSS by Garora on Friday January 21, 2022 @12:58PM (#30027286)
Hi,

What browser and device are you on? And what result does it show

Re:NoJS – Creating a calculator with only HTML and CSS by mouzogu on Friday January 21, 2022 @01:42PM (#30028048)
I feel like this thread is my job in microcosm :D
Re:NoJS – Creating a calculator with only HTML and CSS by hbirler on Friday January 21, 2022 @06:29PM (#30031322)
For 99999 x 9999:

Firefox 96 displays 999889984

Edge 97 displays 999890001

The answer should be 999890001, so Edge is right and Firefox is wrong

Re:NoJS – Creating a calculator with only HTML and CSS by hbirler on Friday January 21, 2022 @06:38PM (#30031409)
Multiplying the 32bit floats 99999.0f and 9999.0f results in 999889984 (Firefox's result). So I guess this hints at what Firefox might be doing :)

Float multiplication's result: https://godbolt.org/z/q857f51GP

Re:NoJS – Creating a calculator with only HTML and CSS by Garora on Friday January 21, 2022 @11:30PM (#30033579)
Thanks,