Skip to content
This repository has been archived by the owner on Jan 7, 2019. It is now read-only.

WriteFloat implementation for type double on ARM Targets #26

Open
TheTh0r opened this issue Jul 18, 2015 · 1 comment
Open

WriteFloat implementation for type double on ARM Targets #26

TheTh0r opened this issue Jul 18, 2015 · 1 comment

Comments

@TheTh0r
Copy link
Member

TheTh0r commented Jul 18, 2015

Double currently is casted to float and the writeFloat function is used in the IOStream.

(See TODO in /src/xpcc/io/iostream_float.cpp line 93)

@salkinium
Copy link
Member

And floats cannot be formatted by number of decimal points or similar, because it's all hard-coded.

Also interesting and mildly related to the topic is an alternative implementation of the OStream:
http://probablydance.com/2014/08/30/format_it-iterator-based-string-formatting/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
xpcc
Backlog
Development

No branches or pull requests

2 participants