You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/11/18 14:52:33 UTC
[GitHub] [incubator-nuttx] no1wudi opened a new issue, #7620: Problem with print floating point
no1wudi opened a new issue, #7620:
URL: https://github.com/apache/incubator-nuttx/issues/7620
I've a simple program:
```c
int main(int argc, FAR char *argv[])
{
double value = +0x1.000000000000080000000000p-600;
printf("Hello, World!! %.7g:f64\n", value);
return 0;
}
```
And this is the output:
```bash
➜ nx qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -nographic -kernel nuttx/nuttx
NuttShell (NSH) NuttX-11.0.0
nsh> hello
Hello, World!! 2.40992e-B1:f64
```
The output of value is wrong, correct result is `2.40992e-181`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] acassis closed issue #7620: [Bug] Problem with print floating point
Posted by GitBox <gi...@apache.org>.
acassis closed issue #7620: [Bug] Problem with print floating point
URL: https://github.com/apache/incubator-nuttx/issues/7620
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org