I'm writing a rules engine and one of the expressions the client is looking for is a "less than 1:80"
1:80 being a ratio
Is converting the ratio to a float a wise decision?
//psuedo-code
String givenRatio = "1:80";
String[] ratioNums = givenRatio.split(":");
float evalValue = Integer.valueOf(ratioNums[0]) / Integer.valueOf(ratioNums[1]);