Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Infinity/V-(Vlang)/infinity.v
Normal file
9
Task/Infinity/V-(Vlang)/infinity.v
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import math
|
||||
|
||||
fn main() {
|
||||
mut x := 1.5 // type of x determined by literal
|
||||
// that this compiles demonstrates that PosInf returns same type as x,
|
||||
// the type specified by the task.
|
||||
x = math.inf(1)
|
||||
println('$x ${math.is_inf(x, 1)}') // demonstrate result
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue