Re: Round-off of a float column



Use the round() function: this lets you specify how many significant digits
to round to.

HTH,

Rob V.
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE"
"The Complete Sybase Replication Server Quick Reference Guide"
"The Complete Sybase ASE Quick Reference Guide"

mailto:rob@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

"mullin" <mullin.yu@xxxxxxxxx> wrote in message
news:1152864919.446918.210360@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If i want to round off column amount with datatype float of a table,
table1, how can i round it off?

e.g.
amount: 67032 => 67032
amount: 67032.1234 => 67032.1234
amount: 67032.123422 => 67032.123422
amount: 67032.1234228 => 67032.123423
amount: 67032.1234224 => 67032.123422
amount: 67032.123422812 => 67032.123423
amount: 67032.123422489 => 67032.123422



.



Relevant Pages