From: ideal one Date: 2012-06-27T04:45:54+09:00 Subject: Match part of the calculated value 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. Gross1 =~ /#{Gross2}/ This throws as nil for me, even if first 3 values are matching, i should consider it was true match...how do i do that? -- Posted via http://www.ruby-forum.com/.