visual c++ - How to check whole number in vc++? -



visual c++ - How to check whole number in vc++? -

uint itemlength = strvalue.length(); bret = ( ( itemlength > maxlength ) || ( itemlength < minlength ) ) ? variant_false : variant_true;

this code beingness used length validation.

i want validate number:

for ex:

min value = 0, max value =10, original value = 5

in status want check whole number.

for ex, want display following:

input -> output

5 -> true

5.1 -> false want display.

assuming f precision number seek this

if (f % (int)f > 0) { console.writeline("is not whole number"); } else { console.writeline("is whole number"); }

visual-c++

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -