float/double to string (pure nothrow @nogc)

ketmar ketmar at ketmar.no-ip.org
Wed Aug 8 17:40:11 UTC 2018


vit wrote:

> Hello, is in phobos some function which convert float/double to string 
> and is pure @nogc and nothrow?

i don't think that you can make it `pure`, but you certainly can make it 
`nothrow`, `@nogc` and ctfe-able. it's dangerous to go alone! take this[0].


[0] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/ctfefloat.d


More information about the Digitalmars-d-learn mailing list