Thread overview | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
September 10, 2014 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx -- |
September 21, 2014 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 --- Comment #1 from hsteoh@quickfur.ath.cx --- The use of snprintf also causes other issues like purity/safety issues. I think we should roll our own native D implementation of these conversions so that it's usable in pure/safe/@nogc/ctfe. -- |
January 02, 2016 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 ag0aep6g@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timothee.cour2@gmail.com --- Comment #2 from ag0aep6g@gmail.com --- *** Issue 15497 has been marked as a duplicate of this issue. *** -- |
October 15, 2016 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |bootcamp CC| |andrei@erdani.com -- |
September 13, 2017 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 b2.temp@gmx.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |turkeyman@gmail.com --- Comment #3 from b2.temp@gmx.com --- *** Issue 12181 has been marked as a duplicate of this issue. *** -- |
December 27, 2018 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 Nick Treleaven <nick@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@geany.org See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=19124 --- Comment #4 from Nick Treleaven <nick@geany.org> --- Stefan Koch has ported "a short and efficient implementation of the grisu2 algorithm" to CTFEable D code: https://forum.dlang.org/post/pfnyycxolnrlxtgzimgp@forum.dlang.org -- |
May 10, 2020 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 Witold Baryluk <witold.baryluk+d@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |witold.baryluk+d@gmail.com --- Comment #5 from Witold Baryluk <witold.baryluk+d@gmail.com> --- Any chance to make this come into phobos work with good tests? The D implementation could also be faster possible that what it is trying to do now (with snprintf, which does a lot of other stuff, including varags stuff, and can't be optimized well by D compiler). I had this issue: bench.d(358): called from here: to(bm(1LU, 18446744073709551615LU, null, null, 0.1F)) bench.d(358): while evaluating pragma(msg, "Generating benchmark code for: bench.bm_pow_Dop_14 using default or user options: " ~ to(bm(1LU, 18446744073709551615LU, null, null, 0.1F))) bm is a struct here that has a float and double fields, and I want to use to!string on it during compile time for some compile time logging and error messages when some conditions are wrong. -- |
May 10, 2020 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 --- Comment #6 from Witold Baryluk <witold.baryluk+d@gmail.com> --- BTW. Mixing is not needed to trigger the issue: import std.conv : to; enum x = to!string(0.1); is enough: /usr/lib/ldc/x86_64-linux-gnu/include/d/std/exception.d(516): Error: uncaught CTFE exception std.format.FormatException("Cannot format floating point types at compile-time") bench.d(338): called from here: to(0.1) -- |
May 11, 2020 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 Seb <greeenify@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |greeenify@gmail.com --- Comment #7 from Seb <greeenify@gmail.com> --- https://github.com/dlang/phobos/pull/7264 could likely help. -- |
February 13, 2021 [Issue 8424] Compile time conversions of double/floats to strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8424 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=3248 -- |
Copyright © 1999-2021 by the D Language Foundation