-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
type: bugSomething that should function correctly isn't.Something that should function correctly isn't.
Description
from the REPL:
> import Data.Formatter.Number
> numberFormatOptions = Formatter { abbreviations: false, after: 1, before: 0, comma: true, sign: false }
> format numberFormatOptions 1.99
"1.10"However, if there are no trailing digits, it seems to work
> import Data.Formatter.Number
> numberFormatOptions = Formatter { abbreviations: false, after: 0, before: 0, comma: true, sign: false }
> format numberFormatOptions 1.9
"1"though it's an interesting behavior in that it floors instead of rounds, when other digits do round:
> import Data.Formatter.Number
> numberFormatOptions = Formatter { abbreviations: false, after: 1, before: 0, comma: true, sign: false }
> format numberFormatOptions 1.39
"1.4"Metadata
Metadata
Assignees
Labels
type: bugSomething that should function correctly isn't.Something that should function correctly isn't.