# Evaluate the Decimal point of an interger

**URL:** <https://forum.kirupa.com/t/evaluate-the-decimal-point-of-an-interger/164351>\
**Category:** flash\
**Created:** [September 30, 2005, 11:48am UTC](https://forum.kirupa.com/t/evaluate-the-decimal-point-of-an-interger/164351 "2005-09-30T11:48:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pizzaguy234](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@pizzaguy234](https://forum.kirupa.com/u/pizzaguy234)\
**Post date:** [September 30, 2005, 11:48am UTC](https://forum.kirupa.com/t/evaluate-the-decimal-point-of-an-interger/164351/1 "2005-09-30T11:48:25Z")

</div>

Hey all,

I need to evaluate the decimal point of an interger (bet u wouldn’t of guessed that from the title eh?!)

So, im reading in XML for a thumbnail viewer, the viewer displays 5 thumbs per “page” so, i divide the total number of thumbs by 5.

Then i need to evaluate the number if it dosn’t have a decimal point (ie, the total divides by 5 exactly) then that is the number of pages i need.

Then if the number does have a decimal 12.2, for instance i need to strip the 2. leaving 12, and then add one so the 2 images left go onto a new page.

Hope you can understand my ramblings.

Cheers in advance. Andy.
