Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default =ROUNDUP(INT(0.xxx))

This function should always return 0, correct?

Ex.: =ROUNDUP(INT(0.9999)) is really =ROUNDUP(0)

A colleague claims this is a bug in Excel; I claim this is correct.

Dave
--
Brevity is the soul of wit.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default =ROUNDUP(INT(0.xxx))

=roundup() takes two arguments.

If you mean:
=ROUNDUP(INT(0.9999),0)

then 0 looks like the only correct answer to me.

=int(0.9999) will be 0
=roundup(0,0) will still be 0.



Dave F wrote:

This function should always return 0, correct?

Ex.: =ROUNDUP(INT(0.9999)) is really =ROUNDUP(0)

A colleague claims this is a bug in Excel; I claim this is correct.

Dave
--
Brevity is the soul of wit.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default =ROUNDUP(INT(0.xxx))

why post this??? Yes that's correct int(0.9999) will return only the integer
part, being 0.

"Dave F" wrote in message
...
This function should always return 0, correct?

Ex.: =ROUNDUP(INT(0.9999)) is really =ROUNDUP(0)

A colleague claims this is a bug in Excel; I claim this is correct.

Dave
--
Brevity is the soul of wit.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default =ROUNDUP(INT(0.xxx))

hi Dave,

this is correct, excel use the math rules to do the operations, Int(0.9999)
= 0
roundup 0 will always be 0.

if you do the formula like =int(roundup((0.9999),0)) will be 1

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Dave F" escreveu:

This function should always return 0, correct?

Ex.: =ROUNDUP(INT(0.9999)) is really =ROUNDUP(0)

A colleague claims this is a bug in Excel; I claim this is correct.

Dave
--
Brevity is the soul of wit.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default =ROUNDUP(INT(0.xxx))

Yes, you're right, I did mean =ROUNDUP(INT(0.999),0)

Thanks.
--
Brevity is the soul of wit.


"Dave Peterson" wrote:

=roundup() takes two arguments.

If you mean:
=ROUNDUP(INT(0.9999),0)

then 0 looks like the only correct answer to me.

=int(0.9999) will be 0
=roundup(0,0) will still be 0.



Dave F wrote:

This function should always return 0, correct?

Ex.: =ROUNDUP(INT(0.9999)) is really =ROUNDUP(0)

A colleague claims this is a bug in Excel; I claim this is correct.

Dave
--
Brevity is the soul of wit.


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default =ROUNDUP(INT(0.xxx))

Why post this? I don't know, maybe because this is a discussion group?

Or are you one of those "best to be seen and not heard" people?
--
Brevity is the soul of wit.


"Tieske" wrote:

why post this??? Yes that's correct int(0.9999) will return only the integer
part, being 0.

"Dave F" wrote in message
...
This function should always return 0, correct?

Ex.: =ROUNDUP(INT(0.9999)) is really =ROUNDUP(0)

A colleague claims this is a bug in Excel; I claim this is correct.

Dave
--
Brevity is the soul of wit.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default =ROUNDUP(INT(0.xxx))

Thanks Marcelo and Dave for helping me keep my sanity.
--
Brevity is the soul of wit.


"Marcelo" wrote:

hi Dave,

this is correct, excel use the math rules to do the operations, Int(0.9999)
= 0
roundup 0 will always be 0.

if you do the formula like =int(roundup((0.9999),0)) will be 1

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Dave F" escreveu:

This function should always return 0, correct?

Ex.: =ROUNDUP(INT(0.9999)) is really =ROUNDUP(0)

A colleague claims this is a bug in Excel; I claim this is correct.

Dave
--
Brevity is the soul of wit.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 605
Default =ROUNDUP(INT(0.xxx))

Dave F,

Thank you for the post. Interesting thread to highlight the difference between

=INT(ROUNDUP((0.9999),0))
and
=ROUNDUP(INT(0.9999),0)

I hope the forum "police" is not around when I post my questions.

Epinn

"Dave F" wrote in message ...
Thanks Marcelo and Dave for helping me keep my sanity.
--
Brevity is the soul of wit.


"Marcelo" wrote:

hi Dave,

this is correct, excel use the math rules to do the operations, Int(0.9999)
= 0
roundup 0 will always be 0.

if you do the formula like =int(roundup((0.9999),0)) will be 1

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Dave F" escreveu:

This function should always return 0, correct?

Ex.: =ROUNDUP(INT(0.9999)) is really =ROUNDUP(0)

A colleague claims this is a bug in Excel; I claim this is correct.

Dave
--
Brevity is the soul of wit.


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



All times are GMT +1. The time now is 07:07 PM.

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"