for me julia> numToWrite < out false
have you redefined < or something? try restarting julia and testing again. also, as i think is obvious, 10000 is not less than 1, so the above is correct, and you would not expect the value to change or the "if" to execute. andrew On Wednesday, 12 March 2014 21:55:44 UTC-3, Jason Solack wrote: > > ok, so i feel like i'm missing something very obvious here... why isn't > numToWrite updating in this code? > > > out = 1 > numToWrite = 10000 > if numToWrite < out > numToWrite = copy(out) > end > > after that code executes numToWrite is still 10000. Both types are Int64, > i've tried it with and without the copy()... > > when i execute > > numToWrite < out > > a 1 is returned as opposed to true. > > Thank you for your help! > > Jason >
