Type validation

  • Thread starter Thread starter Samuel Shulman
  • Start date Start date
S

Samuel Shulman

Is there method to verify that a value is integer and not double

Thank you,
Samuel
 
You can take its ceiling or floor, and compare it to the original value. If
they are the same, then it is an integer.
 
Thanks



Marina Levit said:
You can take its ceiling or floor, and compare it to the original value.
If they are the same, then it is an integer.
 
Let's see if anyone guesses what is the
ceiling of 10.000000000000001D

:)

-tom

Samuel Shulman ha scritto:
 
:) try

MsgBox(Math.Ceiling(10.000000000000001D))

with both VB2003 and then with VB 2005. You will see at MS
have changed opinion about the result :)

-tom

Samuel Shulman ha scritto:
 
Any explanation?


:) try

MsgBox(Math.Ceiling(10.000000000000001D))

with both VB2003 and then with VB 2005. You will see at MS
have changed opinion about the result :)

-tom

Samuel Shulman ha scritto:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Math problem using a Double 6
Make a cell editable 1
Detect the running thread 4
Validation Controls 4
System.Windows.Forms.Message Definition 4
JPG Processing in .NET 3
MySql 2
Receiving email .NET 2.0 3

Back
Top