|
definition: |
showF2 :: Float -> String
showF2 x = let (xs,ys) = break (=='.') (show x)
in if null ys then xs ++ ".00"
else xs ++ "." ++ take 2 (tail ys ++ repeat '0')
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Shows a floating point number with two decimals. |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> _}
|
|
name: |
showF2 |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Prelude.Float -> String |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |