Use integer values instead of float

Integer math has more consistent values than floating point,
so I feel that it's better choice. It's also used in other
cryptocoin code, perhaps for the same reason.