用 D 获取最小浮点数

Get the min float with D

我可以获得最大值(非常大的数)和 min_normal(非常小的数),但我找不到获得最大负数(大负数)的方法。 D有什么好的方法吗?

文档: http://dlang.org/property.html

您可以使用 -float.max 来获取值,因为只需翻转符号位即可。