Search found 4 matches
- Thu Oct 02, 2025 4:47 pm
- Forum: General Board
- Topic: Checking a numerical value
- Replies: 6
- Views: 804
Re: Checking a numerical value
You are absolutely correct, my error, oops!
- Tue Sep 30, 2025 3:19 pm
- Forum: General Board
- Topic: Checking a numerical value
- Replies: 6
- Views: 804
Re: Checking a numerical value
Thanks for that. I'll give it a whirl.
- Sun Sep 28, 2025 9:12 pm
- Forum: General Board
- Topic: Checking a numerical value
- Replies: 6
- Views: 804
Re: Checking a numerical value
Unfortunately, there is no control, only instructions, regarding what the user should enter. There are, however, other checks that come before this to eliminate text, numbers that are too great, small or negative but nothing to guarantee a decimal point,
- Sun Sep 28, 2025 4:32 pm
- Forum: General Board
- Topic: Checking a numerical value
- Replies: 6
- Views: 804
Checking a numerical value
Does anyone have a more elegant way of checking that a number has no more than two places after the decimal point than this example:- if STR$(tempEval * 100) <> STR$(tempEval * 100) then print #Foz.info, "Too many decimal places for empty value!": valerr = 1: return It just seems long-wind...