MySQL Forums
Forum List  »  PHP

Re: Decimal Compare not working
Posted by: Hans Brost
Date: June 16, 2014 01:37PM

I think I know what the problem is.

I do some calculations before the comparison that involve more than 5 decimals. SO, I added this intermediate step:

$WkEMA = .02234 * $MACD;
$MstMACD = round($WkEMA, 5);

z

Options: ReplyQuote


Subject
Written By
Posted
June 16, 2014 12:12PM
Re: Decimal Compare not working
June 16, 2014 01:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.