dhall-nix-lib/Integer/toDouble.dhall

11 lines
221 B
Text
Raw Normal View History

2022-09-01 08:05:34 +00:00
--| Convert an `Integer` to the corresponding `Double`
let toDouble
: Integer → Double
= Integer/toDouble
let example0 = assert : toDouble -3 ≡ -3.0
let example1 = assert : toDouble +2 ≡ 2.0
in toDouble