<html><body><div>As a reply to myself. </div><div><br></div><div>In lines 161 to 169:</div><div><br></div><div>----</div><div><div>function MEP_nums($params) {</div><div>  $params = preg_split('/\\s+/', $params);</div><div>  $args = array();</div><div>  foreach($params as $p) {</div><div>    list($d) = sscanf($p, "%g");</div><div>    if(is_numeric($d)) $args[] = $d;</div><div>  }</div><div>  return $args;</div><div>}</div><div>---</div><div><br></div><div>According to the php manual sscanf() doesn't support th "%g" format and moreover doesn't respect locales either. Changing it to %f or %e doesn't fix the problem, though.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Martin</div><br>On 07 Sep, 2013,at 12:05 PM, "Martin Kerz" <mkerz@me.com> wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><div>Hi!<br><br></div><div>it seems, that it's not possible to calculate with fractions using MarkupExprPlus. </div><div><br></div><div>I want to do </div><div><br></div><div>(:Sum:{(add {$:U} {$:K})}:)</div><div><br></div><div><br></div><div>It works just fine with integers.</div><div><br></div><div>Whenever I use a decimal fraction, like </div><div><br></div><div>:U:0.5</div><div><br></div><div>It produces an error.</div><div><br></div><div>Is it possible to modify MarkupExprPlus to calculate these? If not, is anyone aware of another solution? That would be of great help.</div><div><br></div><div>Thanks a lot in advance,</div><div><br></div><div>Martin </div></div></blockquote></div></body></html>