Announcement

Collapse
No announcement yet.

Returning the integer portion of a ##

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Returning the integer portion of a ##

    Help...

    I need to know how to retrieve/return the integer portion of a variable.

    I have a routine that I am trying to figure out how to return the integer portion of a number - like...

    var number = 4.567867;
    var intNumber;

    intNumber = number.intValue();

    intNumber would now equal 4.

    But it does not work?? Does anyone know how to do this in EFS.

    Brad
    Brad Matheny
    eSignal Solution Provider since 2000

  • #2
    Hi Brad:

    Math.floor() should do the trick.

    Chris

    Comment


    • #3
      That did it...

      Dud! *Slapping my forehead*,

      That did the trick. Thanks a bunch. I must have overlooked that function a billion times (well maybe a few dozen).

      Thank.

      Brad
      Brad Matheny
      eSignal Solution Provider since 2000

      Comment

      Working...
      X