In my function “main” I have:
floor1 = floor(Int64, 4382/6)
println("floor1 = ", floor1)
Hfloor1 = 6floor1
println("Hfloor1 = ", Hfloor1)
missing1 = 4382 - Hfloor1
println("missing1 = ", missing1)
Hfloor2 = -6floor1
println("Hfloor2 = ", Hfloor2)
missing2 = 4382 + Hfloor2
println("missing2 = ", missing2)
The result is:
julia> include(“main”)
floor1 = 730
Hfloor1 = 4380
missing1 = 0.03
Hfloor2 = -4380
missing2 = 2
Comment: missing2 is correct, but the value 0.03 for missing1 is a parameter mentioned somewhere else in “main”.
Question: why went missing1 astray?
5 posts - 5 participants