golang math.Round函數

golang 1.10 Release Notes中記載:golang

mathrest

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)ci

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

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

相關文章
相關標籤/搜索