Division operators
Posted: Fri Mar 05, 2010 9:58 pm
In Cobra, a single slash (/) gives a fractional value, while a double slash (//) gives you integer division:
class Div
def main
assert 5 / 4 == 1.25
assert 5 // 4 == 1