Search found 4 matches

by Paul Gorton
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!
by Paul Gorton
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.
by Paul Gorton
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,
by Paul Gorton
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...