getParameterValue() returns FLT_MIN if the parameter doesn't exist (was 0).
update a comment
before transitioning between states, make sure there's actually a remainder to deal with before filling data