| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: About Ceil(), Floor(), Round() |
| From: | Joe Huber <joehuber@talasoft.com> |
| Date: | Thu, 30 Oct 2008 06:24:17 -0700 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| In-reply-to: | <113E3717-9E9F-4FF8-9F1D-AD671EC19C74@edlr.fr> |
| References: | <113E3717-9E9F-4FF8-9F1D-AD671EC19C74@edlr.fr> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
At 2:03 AM +0000 10/30/08, Eric de La Rochette wrote: I'm just wondering why Ceil(), Floor() & Round() are all returning a Double ? Probably because they have a wider range than standard 32 bit integers and because they are reasonably used in an expression with other double operands. The implied question is whether there should be Integer versions of them now that RB gives warnings about numeric conversions. I've created my own conversion methods that internally use CType to return integer values so that I can round the result of a double expression and assign it to an integer without generating a conversion warning message. Regards, Joe Huber _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: git for version control, Lennart Ramberg |
|---|---|
| Next by Date: | Re: Should Paint event be passed up hierarchy?, Joe Huber |
| Previous by Thread: | Sheet Windows & Win32 Builds, Keith DeLong |
| Next by Thread: | Design Question, Sam Rowlands |
| Indexes: | [Date] [Thread] [Top] [All Lists] |