On Tue, 9 Jun 2009, [email protected] wrote:

> Hi all,
>   While using the scala interpreter i d a doubt. Why is it that 17.8653 is 
> double and 17.2 is also double. Why cant 17.2 be considered as float?
> 
> Reg,
> Vidhya
> 

All you need to do is write '17.2f'
Please note the suffix 'f'

Hope this helps.


thanks
Saifi.

Reply via email to