Validation

Hi ,

I have one scenario that where 

if the value is not 0 and the values should not round off and it should accept up to 9 decimals like 3.612232423.

 

Minimum Rate: 3.5

Maximum Rate: 4

 

input value is of number(dec) format i mean CDT has this data type, how can we achieve this if user enters any values apart from the scenario mentioned above should not except.

 

Thanks in advance.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Peter Lewis

    You might be right - after a little more testing it turns out my fears may have been unjustified (i was worried, for instance, that round() being called on a shorter decimal might mess with the returned value somehow).

    I think it's still a little ripe for corner cases.  Like this one, where it returns "false" even when we'd hope it might return "true".
    round(9.1111111119, 9) = 9.111111111

Children