4 ms·
sadly, it has rounding errors if you multiply by 0.xxx
by Israduscias 5y ago
sadly, it has rounding errors if you multiply by 0.xxx
- Garora 5y agoHi, Please could you give me the exact input, wrong answer and also browser? Thank you:)
- nomel 5y agoIn Safari 15.2, everything is rounded down. 1/2 = 0, 8/9 = 0. Also, it's not possible to type decimal numbers and have them displayed, although it appears they are actually being used internally. Initially, the "." button is disabled. If you press 0, then the "." button is enabled, disappears when clicked (good up to here), but then clicking any of the numbers don't change the display. So, typing "0.9 + 0.9" will look like "0 + 0" and will equal 1 (which is 1.8, rounded down). Also, if you click enough numbers, the numbers are disabled (as usual). So, the displayed state isn't matching the internal state, it appears.
- Garora 5y agoAh yes, safari. I should be able to fix the rounding errors. I should disable the decimals completely in safari as my method of getting decimals isnt supported yet. (@property). Thank you so much for the feedback
- s_gourichon 5y ago? It doesn’t even allow non-integer numbers.
- btdmaster 5y agoIt does not work in Firefox: https://github.com/QuarkNerd/noJS https://github.com/QuarkNerd/noJS. It's not clear why though.
- Garora 5y agoFirefox doesnt support @property Which is what I'm using to round down and calculate the decimals
- cldellow 5y agoIt does, but you have to enter a digit first (0 is fine) in order to see the decimal point button.