why square functions returns double instead of integer?

Printable View