This might be of some use to rule out a floating point issue, or cross check a 'C' snippet, by observing the actual mantissa value used at the point of desired rounding:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Tue 2019.08.20
This might be of some use to rule out a floating point issue, or cross check a 'C' snippet, by observing the actual mantissa value used at the point of desired rounding:
Adapted from snippet above for the Espruino tests
Value under test:
Still a bit of work to do with the actual manipulation of the mantissa.
Also may be used for and related to post:
References: