import std.stdio, std.conv; void main() { writeln(to!float("INF2")); // Prints 2 }
https://github.com/D-Programming-Language/phobos/pull/345 "INF2" is not a complete representation of floating point number, so to!float("INF2") should throw ConvException.
https://github.com/D-Programming-Language/phobos/commit/9ed66460d360eb433af5aedbe338a0510a967a19