Getting the units of a number
From: Adrian Gibbons (adriangibbons_at_yahoo.co.uk)
Date: 10/23/03
- Next message: Tim Clacy: "class static variables & __STDC_VERSION__"
- Previous message: Peter van Merkerk: "Re: Help on implementing COM on unix"
- Next in thread: Peter van Merkerk: "Re: Getting the units of a number"
- Reply: Peter van Merkerk: "Re: Getting the units of a number"
- Reply: Artie Gold: "Re: Getting the units of a number"
- Reply: Kevin Saff: "Re: Getting the units of a number"
- Reply: David Rubin: "Re: Getting the units of a number"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Oct 2003 05:29:49 -0700
Hello,
I need to get the units of a number.
i.e. if I had 12345 then I would want '5'.
I was looking at dividing the number by ten and using the modulus
operator repeatedly until I had only the units, but wondered if there
was an easier way?
Regards,
Adrian.
- Next message: Tim Clacy: "class static variables & __STDC_VERSION__"
- Previous message: Peter van Merkerk: "Re: Help on implementing COM on unix"
- Next in thread: Peter van Merkerk: "Re: Getting the units of a number"
- Reply: Peter van Merkerk: "Re: Getting the units of a number"
- Reply: Artie Gold: "Re: Getting the units of a number"
- Reply: Kevin Saff: "Re: Getting the units of a number"
- Reply: David Rubin: "Re: Getting the units of a number"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|