Unix Technical Forum

Re: [Info-Ingres] ROUNDING numbers in sql procedure

This is a discussion on Re: [Info-Ingres] ROUNDING numbers in sql procedure within the Ingres forums, part of the Database Server Software category; --> Hi Martin, be careful, you will get undesired results with negative numbers ! How about using the builtin function ...


Go Back   Unix Technical Forum > Database Server Software > Ingres

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 09:58 PM
=?ISO-8859-1?Q?J=FCrgen_Cappel?=
 
Posts: n/a
Default Re: [Info-Ingres] ROUNDING numbers in sql procedure

Hi Martin,

be careful, you will get undesired results with negative numbers !
How about using the builtin function round() ?

Jürgen




-------- Original Message --------
Subject: Re: [Info-Ingres] ROUNDING numbers in sql procedure
Date: Thu, 02 Aug 2007 10:38:14 +0100
From: martin.bowes@ctsu.ox.ac.uk
To: npiet@gascognelaminates.com
CC: info-ingres@kettleriverconsulting.com



Hi Nathalie

Why not just add 0.5 to the result before the integer conversion occurs?

Marty

> I have procedures in an ingres database
> In these procedures, I do some numbers operations.
> when the result is for example 3644,6 the number is rounded to 3644
> and I would like that it's rounded to 3645. how can i do to round to
> the next number ? is there an function wich do this ? thanks
>
> Nathalie
>
> _______________________________________________
> Info-Ingres mailing list
> Info-Ingres@kettleriverconsulting.com
> http://www.kettleriverconsulting.com...fo/info-ingres
>



_______________________________________________
Info-Ingres mailing list
Info-Ingres@kettleriverconsulting.com
http://www.kettleriverconsulting.com...fo/info-ingres



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com