Click here to Skip to main content
15,914,165 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Standing desks experiences/recommendations Pin
djklord14-Aug-18 10:26
djklord14-Aug-18 10:26 
GeneralWhy one can do this in this way, any idea? Pin
User 1106097913-Aug-18 8:20
User 1106097913-Aug-18 8:20 
GeneralRe: Why one can do this in this way, any idea? Pin
Nelek13-Aug-18 8:46
protectorNelek13-Aug-18 8:46 
GeneralRe: Why one can do this in this way, any idea? Pin
Jon McKee13-Aug-18 19:05
professionalJon McKee13-Aug-18 19:05 
GeneralRe: Why one can do this in this way, any idea? Pin
Daniel Pfeffer13-Aug-18 9:55
professionalDaniel Pfeffer13-Aug-18 9:55 
PraiseRe: Why one can do this in this way, any idea? Pin
User 1106097913-Aug-18 10:04
User 1106097913-Aug-18 10:04 
GeneralRe: Why one can do this in this way, any idea? Pin
Marc Clifton13-Aug-18 13:37
mvaMarc Clifton13-Aug-18 13:37 
GeneralRe: Why one can do this in this way, any idea? Pin
englebart14-Aug-18 1:59
professionalenglebart14-Aug-18 1:59 
Three possibilities:

1.
I really think you should be explicitly declaring 2.0d and -21.0d.

With your arguments, the compiler should use the overloaded pow(float, float) which returns a float which is then coerced to a double. This value may not have been as accurate as you desired.

2.
Maybe the library in use at the time did not allow negative numbers for the second parameter?

Googling "c++ pow function negative exponent" has a lot of hits and shows the work around you provided.

3.
Pentium CPU floating point bug?

GeneralTool to check the equality of formulas over 32bit integers Pin
harold aptroot13-Aug-18 6:18
harold aptroot13-Aug-18 6:18 
GeneralRe: Tool to check the equality of formulas over 32bit integers Pin
Rage13-Aug-18 6:41
professionalRage13-Aug-18 6:41 
GeneralRe: Tool to check the equality of formulas over 32bit integers Pin
Marc Clifton13-Aug-18 6:42
mvaMarc Clifton13-Aug-18 6:42 
GeneralRe: Tool to check the equality of formulas over 32bit integers Pin
Kenneth Haugland13-Aug-18 7:38
mvaKenneth Haugland13-Aug-18 7:38 
GeneralRe: Tool to check the equality of formulas over 32bit integers Pin
harold aptroot13-Aug-18 8:37
harold aptroot13-Aug-18 8:37 
GeneralRe: Tool to check the equality of formulas over 32bit integers Pin
Kenneth Haugland13-Aug-18 9:05
mvaKenneth Haugland13-Aug-18 9:05 
GeneralRe: Tool to check the equality of formulas over 32bit integers Pin
Nelek13-Aug-18 8:49
protectorNelek13-Aug-18 8:49 
GeneralThought of the Day Pin
OriginalGriff13-Aug-18 5:02
mveOriginalGriff13-Aug-18 5:02 
GeneralRe: Thought of the Day Pin
megaadam13-Aug-18 5:07
professionalmegaadam13-Aug-18 5:07 
GeneralRe: Thought of the Day Pin
lopatir13-Aug-18 5:19
lopatir13-Aug-18 5:19 
GeneralRe: Thought of the Day Pin
Mike Hankey13-Aug-18 5:48
mveMike Hankey13-Aug-18 5:48 
GeneralRe: Thought of the Day Pin
Randor 13-Aug-18 5:51
professional Randor 13-Aug-18 5:51 
GeneralRe: Thought of the Day Pin
DRHuff13-Aug-18 6:22
DRHuff13-Aug-18 6:22 
GeneralRe: Thought of the Day Pin
megaadam13-Aug-18 6:29
professionalmegaadam13-Aug-18 6:29 
GeneralRe: Thought of the Day Pin
DRHuff13-Aug-18 7:52
DRHuff13-Aug-18 7:52 
GeneralRe: Thought of the Day Pin
PIEBALDconsult13-Aug-18 7:01
mvePIEBALDconsult13-Aug-18 7:01 
GeneralRe: Thought of the Day Pin
W Balboos, GHB13-Aug-18 7:31
W Balboos, GHB13-Aug-18 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.