How to Differentiate Decimal number from Integer.

Jul 30, 2018

Hi Everyone,

I am trying to create a simple question which must identify a typed number (using Numeric Entry) is an integer or a Decimal number on clicking the 'Submit' button.

For Example, Lets say if a student types 1.52, then a variable must set to 'True'.
Similarly, if the student will type an integer, say, 65, then the variable must be set to 'False'.

This will happen when the student will click on 'submit' button.

Is there any way to identify a typed number is an integer or Decimal value? Any help would be appreciated.

3 Replies

This discussion is closed. You can start a new discussion or contact Articulate Support.