Monday, July 5, 2010

Aah Consistency!!


# 1 + 2.1 ;;
Error: This expression has type float but an expression was expected of type int

# 1.0 + 2.1 ;;
Error: This expression has type float but an expression was expected of type int

# 1.0 +. 2.1 ;;
- : float = 3.1



No comments: