LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Rounding Errors

Hello all!

I have a rounding issue. I have numbers that are stored in an array a
singles. I want to round them to 1 decimal place "00.0". The way
usually round is like this:

Sub test()
MsgBox (Int(50.599 * 10) * 0.1 & " " & 50.6)
End Sub

But try this yourselves and you will see that the message box says 50.
50.6.

Does anyone know a better method of accuratly rounding

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rounding Errors in 2007 Jacqueline Excel Worksheet Functions 14 May 29th 09 08:51 PM
Decimal rounding causing addition errors TKGerdie Excel Discussion (Misc queries) 2 April 16th 09 03:51 PM
Compensating for Excel rounding errors CB Excel Discussion (Misc queries) 8 November 25th 08 04:25 PM
Rounding Errors Help mattflow Excel Discussion (Misc queries) 2 August 12th 05 08:10 PM
Unwanted Rounding Errors Anson[_2_] Excel Programming 1 June 10th 04 02:30 PM


All times are GMT +1. The time now is 11:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"