FloatAsDouble => Float64

This commit is contained in:
xushiwei
2024-05-11 06:55:57 +08:00
parent 1414853fce
commit 2560a333b6
3 changed files with 4 additions and 4 deletions

View File

@@ -8,5 +8,5 @@ import (
func main() {
x := math.Sqrt(py.Float(2))
c.Printf(c.Str("sqrt(2) = %f\n"), x.FloatAsDouble())
c.Printf(c.Str("sqrt(2) = %f\n"), x.Float64())
}