diff lib/ur/basis.urs @ 1571:f403e129c276

Primitive int/float functions: ceil, float, round, trunc
author Adam Chlipala <adam@chlipala.net>
date Sat, 08 Oct 2011 17:23:58 -0400
parents 5691ec310618
children 5530a8075b62
line wrap: on
line diff
--- a/lib/ur/basis.urs	Sat Oct 08 14:16:13 2011 -0400
+++ b/lib/ur/basis.urs	Sat Oct 08 17:23:58 2011 -0400
@@ -145,6 +145,14 @@
 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