The problem with automatic type coercions is that they interfere with type inference. Don Syme discusses it in much more detail in this thread:
[link:cs.hubfs.net]

How ever there is a very easy way to convert an int to float, just use the float function:

1
2
3
#light
let i = 0
System.Math.Sqrt(float i)
By on 7/27/2007 5:36 AM ()

Thanks.

How ever there is a very easy way to convert an int to float, just use the float function:

I know, but when you need type it again and again its getting little uncomfortable.

By on 7/28/2007 12:46 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper