ht1621-7-seg icon indicating copy to clipboard operation
ht1621-7-seg copied to clipboard

exponential print

Open valerionew opened this issue 5 years ago • 4 comments

Printing in the for of 123E45 and 123E-4 should be possible with a 7 segment LCD

valerionew avatar Jun 14 '20 09:06 valerionew

Now when there is possibility to print characters... this could probably be quite easily possible using sprintf("%E", ), right?

pk avatar Jan 14 '21 19:01 pk

Well apparently not as Arduino does not support those formats so the function dtostre could be used but the output will be very often longer than 6 digits so it would need probably special handling.

pk avatar Jan 14 '21 19:01 pk

As you stated, Arduino does not support snprintf without changing compiler settings, and that would make impossible to install this as a library, so another implementation has to be found

valerionew avatar Jan 15 '21 15:01 valerionew

@valerionew @pk Although an old issue, you might have a look at - https://github.com/RobTillaart/printHelpers It supports several formats including exponential.

RobTillaart avatar Dec 28 '23 13:12 RobTillaart