-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
add in configuration flag if we can round floats?
We already have RoundingAlg but the difference here is that we should choose weather it will be red/yellow result
// should be a regular integer value.
// Parse the float.
// TODO: configurable: if we allow to "round" floats??
n, err := strconv.ParseInt(strings.TrimSpace(string(data)), 10, 64)
if err != nil {
return fmt.Errorf("dirty.Integer: cannot parse number: %w", err)
}
*v = Integer(n)
return nil