diff options
author | 2011-10-08 17:23:58 -0400 | |
---|---|---|
committer | 2011-10-08 17:23:58 -0400 | |
commit | ff119b6f75734c94df9f86cda58e95e1b6506705 (patch) | |
tree | af5545a16e8c2d7f65737c161285cf78b8ed2d43 /lib/ur/basis.urs | |
parent | 47ed9101fdb70e576c6cfbebce06ca78b6d7b973 (diff) |
Primitive int/float functions: ceil, float, round, trunc
Diffstat (limited to 'lib/ur/basis.urs')
-rw-r--r-- | lib/ur/basis.urs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ur/basis.urs b/lib/ur/basis.urs index dc4d9ba2..70c1ef55 100644 --- a/lib/ur/basis.urs +++ b/lib/ur/basis.urs @@ -145,6 +145,14 @@ val signal : t ::: Type -> source t -> signal t val current : t ::: Type -> signal t -> transaction t +(** * Floats *) + +val float : int -> float +val ceil : float -> int +val trunc : float -> int +val round : float -> int + + (** * Time *) val now : transaction time |