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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting precision of calculated fields

Status
Not open for further replies.

snello

Programmer
Mar 10, 2001
1
US
My SQL statement creates a recordset that includes an aggregate function on one attribute, how can I set the precision of the result?

The statement is included within an ASP page using VBScript as the server side language.

Any Help???
 
If you have a field that's overflowing to to many DP then I'd use round

select round(1.111111,2) from dual

returns

1.11

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top