mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-16 05:00:38 +08:00
Renamed ration ToDouble() to Float64()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user