7,166
edits
Line 414: | Line 414: | ||
avr libs の dtostrf (stdlibs.h) で代用できる。[http://www.nongnu.org/avr-libc/user-manual/group__avr__stdlib.html#ga6c140bdd3b9bd740a1490137317caa44 dtostre] | avr libs の dtostrf (stdlibs.h) で代用できる。[http://www.nongnu.org/avr-libc/user-manual/group__avr__stdlib.html#ga6c140bdd3b9bd740a1490137317caa44 dtostre] | ||
:そもそも FPU | :そもそも FPU の無いマイコンで浮動小数使うのはダメね。無理やり整数か、美しくするなら固定小数点で書き換える。 | ||
[https://ucexperiment.wordpress.com/2015/03/31/avr-gcc-fixed-point-vs-floating-point-comparison/ AVR GCC Fixed-Point vs. Floating Point Comparison | µC eXperiment] | [https://ucexperiment.wordpress.com/2015/03/31/avr-gcc-fixed-point-vs-floating-point-comparison/ AVR GCC Fixed-Point vs. Floating Point Comparison | µC eXperiment] | ||
Line 420: | Line 420: | ||
[https://gcc.gnu.org/onlinedocs/gcc/Fixed-Point.html Fixed-Point - Using the GNU Compiler Collection (GCC)] | [https://gcc.gnu.org/onlinedocs/gcc/Fixed-Point.html Fixed-Point - Using the GNU Compiler Collection (GCC)] | ||
[http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf ISO/IEC TR 18037:2006(E)] | [http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf ISO/IEC TR 18037:2006(E)] | ||
:固定小数点 fixed point の情報すくないね。もともと FPU の無い マイコン系の拡張なのでネットでも情報出て無い。 | |||
==== メモメモ ==== | ==== メモメモ ==== |