Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 268
Default INT ROUND & TRUNC

As far as I understand TRUNC will truncate a figure to either the integer or
a specified number of decimal places. This can also be done by INT and
ROUND (respectively). It is possible that TRUNC is provided as a duplicate
method but it may do something different - or in a different way. I should
appreciate some guidance on this - even if it is a link.

Thanks.

Bill Ridgeway


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,726
Default INT ROUND & TRUNC

INT and TRUNC differ in how they handles negative numbers. For instance,
=TRUNC(-5.3) gives -5, whereas =INT(-5.3) gives -6.

ROUND(num,0) works the same as INT, but rember that ROUND can work to a
different number of digits, so it can be to 1, 2, 3, ... decimal places, or
to -1, -2, -3, ... to powers of 10.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Bill Ridgeway" wrote in message
...
As far as I understand TRUNC will truncate a figure to either the integer

or
a specified number of decimal places. This can also be done by INT and
ROUND (respectively). It is possible that TRUNC is provided as a

duplicate
method but it may do something different - or in a different way. I

should
appreciate some guidance on this - even if it is a link.

Thanks.

Bill Ridgeway




  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 418
Default INT ROUND & TRUNC

Bill Ridgeway wrote:
As far as I understand TRUNC will truncate a figure to either the integer or
a specified number of decimal places. This can also be done by INT and
ROUND (respectively).


While it is true that TRUNC and INT are similar insofar as they both
truncate (drops the fractional part), ROUND is different insofar as it,
well, rounds(!). For example, TRUNC(2.5) and INT(2.5) both yield 2,
whereas ROUND(2.5,0) yields 3.

It is possible that TRUNC is provided as a duplicate
method but it may do something different - or in a different way. I should
appreciate some guidance on this - even if it is a link.


Read the Excel Help pages. On the toolbar, click Help Excel Help.
(Note: I disable Online Content.) There is a difference between TRUNC
and INT in the handling of negative numbers.

Reply
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
Round time maybe this explanation will help Darts Excel Discussion (Misc queries) 1 March 22nd 06 09:57 PM
ROUND or "Precision as displayed"? bb Excel Worksheet Functions 2 March 2nd 06 04:53 AM
round up a function RESULT Lynne Excel Discussion (Misc queries) 4 November 10th 05 04:59 PM
Round whole numbers up and down JoeBed Excel Discussion (Misc queries) 4 July 5th 05 05:21 PM
How do I ROUND() round off decimals of a column dataset? Højrup Excel Worksheet Functions 2 January 12th 05 10:50 AM


All times are GMT +1. The time now is 10:20 AM.

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

About Us

"It's about Microsoft Excel"