0

Hi,

I about to write some code, that will, in the end, format some HTML.

To keep storage space down, the idea is to hold the number as an integer, and pick out the character that relates to the specific format when writing it. My problem however comes when trying to pick out the character.

The idea is to divide the number by a multiple of 10, and take the first number to the right of the decimal place, that way, if no formatting is t be applied, the integer can be 0, and each division will therefore also be 0, saving space in the database.

Can anybody help me with a way of finding the number to the left of the Decimal Place?

Thanks,

uniquestar