| beelsebob | arse is there a function that will "show" a float/double guarenteeing not to use exponential form |
| monochrom | showFFloat |
| beelsebob | > showFFloat (3E9) |
| yip__ | > showFFloat (3E9) |
| lambdabot | add an instance declaration for (Fractional (Maybe Int)) |
| beelsebob | o.O |
| kpreid | @type 3E9 |
| sorear | > show 3.984759038475394857329487562398756E94857 |
| lambdabot | forall t. (Fractional t) => t ghc: failed with error code 9 |
| beelsebob | > showFFloat 3000000000 |
| yip__ | > showFFloat Nothing (3E9) "" |
| sorear | Oh! |
| lambdabot | add an instance declaration for (Num (Maybe Int)) "3000000000.0" |
| beelsebob | @type showFFloat |
| lambdabot | forall a. (RealFloat a) => Maybe Int -> a -> String -> String |
| beelsebob | what's the Maybe Int for? the exponant required? |
| sorear | @tell dons > show 3.984759038475394857329487562398756E94857 |
| lambdabot | Consider it noted. |
| beelsebob | > showFFloat (Just 2) 3000000000 "" |
| monochrom | @doc showFFloat |
| lambdabot | "3000000000.00" showFFloat not available |
| beelsebob | ah, decimal places |
| monochrom | RTFD |
| beelsebob | > showFFloat Nothing 3000000000 "jam' |
| lambdabot | Improperly terminated string |
| beelsebob | > showFFloat Nothing 3000000000 "jam' |
| lambdabot | Improperly terminated string |
| beelsebob | > showFFloat Nothing 3000000000 "jam" |
| lambdabot | "3000000000.0jam" |
| beelsebob | damn it type fail okay cool, that's good :) |
| yip__ | if i have an optional string value, should i use Maybe String, or just String, and have the empty string represent Nothing? |
| monochrom | With >99% likelihood, better with Maybe String. |