Re: [julia-users] Re: Float64: 1.0 vs. 1.

2016-10-23 Thread Michele Zaffalon
See also here: https://groups.google.com/d/msg/julia-users/hIVawSgFvOs/9EpbqwWWBgAJ and the conclusion was: avoid writing 1. (which will not be allowed by the parser some time) and write 1.0 instead. On Mon, Oct 24, 2016 at 3:40 AM, J Luis wrote: > It parses .+ as broadcasting of two Ints. Do i

[julia-users] Re: Float64: 1.0 vs. 1.

2016-10-23 Thread J Luis
It parses .+ as broadcasting of two Ints. Do instead typeof(1. +1) Float64 segunda-feira, 24 de Outubro de 2016 às 02:33:15 UTC+1, christop...@unibas.ch escreveu: > > What is the difference between 1.0 and 1. ? > Both are of type Float64, but adding 1 leads to the result 2.0, i.e., > Float64,