aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/math/bits.js.v
blob: 0bec945e2150502b22e1194819ca6380309b5d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}