drkcore

2009/09/12 16:26:05

OCamlのべき乗

floatしかべき乗の演算子がないのは何故?

# 2.0 ** 3.0;;
- : float = 8.

int

# 2 ** 3;;
Characters 0-1:
  2 ** 3;;
  ^
Error: This expression has type int but is here used with type float

Comments