Skip to content

Commit

Permalink
fix(validate): use Rat.RatString instead of Rat.String
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Nov 3, 2022
1 parent 2c3547c commit fd9d834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate/float.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (t Float) Validate(v float64) error {
if t.MultipleOfSet {
val := new(big.Rat).SetFloat64(v)
if !val.Quo(val, t.MultipleOf).IsInt() {
return errors.Errorf("value %f is not multiple of %s", v, t.MultipleOf.String())
return errors.Errorf("value %f is not multiple of %s", v, t.MultipleOf.RatString())
}
}

Expand Down

0 comments on commit fd9d834

Please sign in to comment.