2
我在想,如果斯卡拉或其众所周知的数学库之一(例如Spire)具有相当于去的math.Nextafter
功能斯卡拉相当于去的math.Nextafter
package main
import (
"fmt"
"math"
)
func main() {
fmt.Printf("Now you have %g problems.",
math.Nextafter(2, 3))
}
如果没有,那么获得相同功能的最“Scala”方法是什么?