On Tue, Jun 26, 2012 at 9:45 PM, ideal one <[email protected]> wrote:
> Hi,
>   I have a symbol market value which changes dynamically  & i have to
> multiple it with static value order.
>
> eg:
> Symbol = 567.45
> order  = 10
> Gross = symbol * order
> Gross1 = 567.45 * 10 = 5674.50
>
> In couple of seconds Symbol value might change to 567.88
> So Gross2 = 567.88 * 10 = 5678.80
>
> I wanted to compare if Gross1 and Gross2 are equal or if Gross1 has
> values matching with Gross2.

"Equal" does make sense for decimal numbers, but what do you mean by
"Gross1 has values matching with Gross2"?  I cannot connect any math
operation with that.

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to