add math.nan math.inf

This commit is contained in:
Li Haokun 2021-09-01 19:15:32 +08:00 committed by GitHub
parent 418531a44a
commit 11971267dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ var math=
ln: func(x) {return __builtin_ln(x); },
sqrt: func(x) {return __builtin_sqrt(x); },
atan2: func(x,y){return __builtin_atan2(x,y);},
nan: func() {return 1/0-1/0; },
inf: 1/0,
nan: 1/0-1/0,
isnan: func(x) {return __builtin_isnan(x); }
};