Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,18 @@
|
||||
module math
|
||||
|
||||
pub fn inf(sign int) f64 {
|
||||
mut res := 0.0
|
||||
if sign >= 0 {
|
||||
#res.val = Infinity
|
||||
} else {
|
||||
#res.val = -Infinity
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn nan() f64 {
|
||||
mut res := 0.0
|
||||
#res.val = NaN
|
||||
|
||||
return res
|
||||
}
|
||||
Reference in new issue
Block a user