[ADD] Trying ddifferent numbers aand notation on Julia
This commit is contained in:
parent
f7e57249e4
commit
2e47abdfdf
|
@ -0,0 +1,39 @@
|
||||||
|
println(43)
|
||||||
|
println(-43)
|
||||||
|
println(54.4)
|
||||||
|
println(3e5)
|
||||||
|
println(typeof(3))
|
||||||
|
println(typeof(4.5))
|
||||||
|
println(Int8(4))
|
||||||
|
println(typeof(Int8(3)))
|
||||||
|
println(hex(0x10))
|
||||||
|
println(dec(0x10))
|
||||||
|
println(bin(0x10))
|
||||||
|
println(0b110)
|
||||||
|
println(π)
|
||||||
|
println(e)
|
||||||
|
println(typeof(π))
|
||||||
|
println(1/4)
|
||||||
|
println(1//4)
|
||||||
|
println(1//4 + 1//8)
|
||||||
|
println(num(1//4 + 1//8))
|
||||||
|
println(den(1//4 + 1//8))
|
||||||
|
println(parse("3"))
|
||||||
|
println(typeof(parse("3")))
|
||||||
|
println(parse("3.4"))
|
||||||
|
println(typeof(parse("3.4")))
|
||||||
|
println(typeof(parse(Int8,"3")))
|
||||||
|
println(parse(Int8,"110",2))
|
||||||
|
println(typeof(Int8(4)+5))
|
||||||
|
println(2^3)
|
||||||
|
println(3.4 + 8)
|
||||||
|
println(4/3)
|
||||||
|
println(div(4,3))
|
||||||
|
println(4 % 3)
|
||||||
|
println(rem(4,3))
|
||||||
|
println(mod(4,3))
|
||||||
|
println(floor(4.45))
|
||||||
|
println(round(π,2))
|
||||||
|
println(iseven(4))
|
||||||
|
println(typeof(true))
|
||||||
|
println(supertype(Bool))
|
Loading…
Reference in New Issue