floating point numerals

This commit is contained in:
Krasimir Angelov committed 2023-07-24 20:06:01 +02:00
1 parent cb26429655
commit 5d912f78a4
17 files changed
+50 -3

No files matched your search

+6
View File
@@ -107,6 +107,12 @@ concrete NounKor of Noun = CatKor ** open ResKor, Prelude in {
numtype = IsDig
} ;
NumFloat dig1 dig2 = baseNum ** {
s = \\_,_ => dig1.s ! NCard ++ BIND ++ "." ++ BIND ++ dig2.s ! NCard ;
n = Pl ;
numtype = IsDig
} ;
-- : Numeral -> Card ;
NumNumeral num = num ;