|
|
|
|
|
by enricosada
4211 days ago
|
|
F# use the same + operator > 1.0;;
val it : float = 1.0
> 1;;
val it : int = 1
> 3.0 + 1.0;;
val it : float = 4.0
> 3 + 1;;
val it : int = 4
or strings > "3" + "4";;
val it : string = "34"
implicit conversion is not supported (good ihmo) > 3.0 + 1;;
3.0 + 1;;
------^
stdin(5,7): error FS0001: The type 'int' does not match the type 'float'
|
|