Renamed ration ToDouble() to Float64()

This commit is contained in:
Quentin Renard
2024-01-26 11:41:37 +01:00
parent 27ef0bb3bd
commit cc9ebd8978
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ func (r *Rational) SetDen(den int) {
r.c.den = C.int(den)
}
func (r Rational) ToDouble() float64 {
func (r Rational) Float64() float64 {
if r.Num() == 0 || r.Den() == 0 {
return 0
}