1. 程式人生 > >golang math.Round函式

golang math.Round函式

golang 1.10 Release Notes中記載:

math

The new functions Round and RoundToEven round their arguments to the nearest floating-point integer; Round rounds a half-integer to its larger integer neighbor (away from zero)

while RoundToEven rounds a half-integer to its even integer neighbor.

The new functions Erfinv and Erfcinv compute the inverse error function and the inverse complementary error function.