What does less than 0. (0 dot) mean?

c

Solution

`0.` is a literal of type `double` (and value zero). By contrast, `0` is a literal of type `int`.

Problem

I just saw this for the first time. The source code I'm looking at is in C ``` if( rate < 0.){ ... } else{ ... } ``` What happens if `rate=0` ?

Original source

Related problems