Bug#839280: libc6: asprintf(&c, "%F", 1.0) puts 0.00000 in c on raspberry pi zero v1.3.
Package: libc6
Version: 2.19-18+deb8u6
Severity: normal
Dear Maintainer,
* What led up to the situation? I was building a robot, and needed a raspberry pi zero to send a floating point number formatted as a string to an arduino.
* What exactly did you do (or not do) that was effective (or
ineffective)? I've tried passing bigger numbers than 1.0 (like 100.0) , but it didn't seem to do anything different, "%F %F" does however seem to get the second argument right.
* What was the outcome of this action? It printed out something like: -0.000000001 1.0
* What outcome did you expect instead? 1.0 0.0
Also I'm sorry if I'm doing something wrong in the bug reporting process, this is my first time using this reportbug program.
-- System Information:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie
Architecture: armv6l
Kernel: Linux 4.4.21+
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libc6 depends on:
ii libgcc1 1:4.9.2-10
libc6 recommends no packages.
Versions of packages libc6 suggests:
ii debconf [debconf-2.0] 1.5.56
pn glibc-doc <none>
ii locales 2.19-18+deb8u6
-- debconf information:
libraries/restart-without-asking: false
glibc/disable-screensaver:
glibc/restart-services:
glibc/upgrade: true
glibc/restart-failed:
Reply to: