1
0
forked from GitHub/gf-rgl

The new Decimal API

This commit is contained in:
Krasimir Angelov
2023-08-21 20:14:26 +02:00
parent 58da8deca8
commit fb398c603e
147 changed files with 918 additions and 188 deletions

View File

@@ -51,6 +51,7 @@ concrete CatTha of Cat = CommonX ** open ResTha, Prelude in {
-- Numeral
Numeral, Card, Digits = {s : Str} ;
Decimal = {s : Str; hasDot : Bool} ;
-- Structural

View File

@@ -38,6 +38,7 @@ concrete NounTha of Noun = CatTha ** open StringsTha, ResTha, Prelude in {
NumCard n = n ** {hasC = True} ;
NumDigits d = d ;
NumDecimal d = d ;
OrdDigits d = {s = thbind thii_s d.s} ;
NumNumeral numeral = numeral ** {hasC = True} ;

View File

@@ -89,4 +89,6 @@ oper
D_8 = ss "๘" ;
D_9 = ss "๙" ;
PosDecimal d = d ** {hasDot=False} ;
}