this works just fine:
t <- 2
repeat {
print(t)
t = t+2
if (t == 8){
break
}
}
this does not:
t <- 0.1
repeat {
print(t)
t = t+0.1
if (t == 1){
break
}
}
why?
this works just fine:
t <- 2
repeat {
print(t)
t = t+2
if (t == 8){
break
}
}
this does not:
t <- 0.1
repeat {
print(t)
t = t+0.1
if (t == 1){
break
}
}
why?