dhall-nix-lib/Double/toNatural.dhall

6 lines
212 B
Text

λ(nix : ../NixPrelude.dhall) →
let Number/fromDouble = ../Number/fromDouble.dhall nix
let Number/toNatural = ../Number/toNatural.dhall nix
in λ(a : Double) → Number/toNatural (Number/fromDouble a)