From: Robert Klemme Date: 2012-06-27T05:36:07+09:00 Subject: Re: Match part of the calculated value On Tue, Jun 26, 2012 at 9:45 PM, ideal one 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/