A lot of microcomputer applications display data of sensors or calculations over a bigger range, e.g. voltages from millivolts to volts or resistors from ohm to kiloohm to megaohm. Usually, data is then displayed in engineering format, which is similar to scientific notation, but the exponent is always a multiple of 3 (e.g. 12.345E3
instead of 1.2345E4
).
A new function, fp64_etoa is available for this use case. It has the exact same parameters as fp64_ftoa, making code changes easy. Application could even offer the user the possibility to switch between the scientific notation and engineering notation by using fp64_ftoa or fp64_etoa respectively.
V1.1.25 also fixed a bug in fp64_ftoa, that occured only on the MEGA 256 processors like on the Arduino Mega board.