Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/big"
|
||||
)
|
||||
|
||||
func main() {
|
||||
for _, d := range []string{"0.9054054", "0.518518", "0.75"} {
|
||||
if r, ok := new(big.Rat).SetString(d); ok {
|
||||
fmt.Println(d, "=", r)
|
||||
} else {
|
||||
fmt.Println(d, "invalid decimal number")
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue