Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select a field from a column

Status
Not open for further replies.

dunk2

Technical User
Jun 10, 2002
14
IE
Hi,

How do I select a field from a numeric column?
Example. I want to sum the fourth digit after the decimal place, typical number= 26.2345 so I want to select '5' and then sum this.

Thanks in advance.
 
This might not be what you're looking for, but you can simply multiply the number by 10000 and then take modulo 10. Not the most efficient way to do it but the first thing that poped into my head. Almost by definition, floating point operations are not going to be efficient. Good luck. MYenigmaSELF:-9
myenigmaself@myenigmaself.gaiden.com
"If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top