Dimitri Krut Posted August 20, 2018 Report Share Posted August 20, 2018 Using Samba SM70J Trying to make sure that the floating lumber entry is limited to a certain value range and limit a number of characters after the decimal point to one. for example 123.4 is allowed, but if the user tries to enter 123.44, it will be rounded to 123.4. MF type variable does not seem to allow masking of variables. Is there a work around this? Thanks! Link to comment Share on other sites More sharing options...
Isakovic Posted August 21, 2018 Report Share Posted August 21, 2018 Usual workaround is to put an MI for user input and mask it to 1 decimal place. Then divide it with 10 in ladder to convert to float. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now