Automator Service that does predefined simple calculations
n = STDIN.read.scan(/-?[0-9., ]+/)[0]
separator = "."
separator = "," if n =~ /.+[. ].+,.+/ || n =~ /,/ &amp;&amp; n !~ /\./
separator == "." ? n.gsub!(/[, ]/, "") : n = n.gsub(/[. ]/, "").gsub(",", ".")
out = "%.02f" % ((n.to_f * 1.19 * 100).round.to_f / 100)
out.gsub!(".", ",") if separator == ","
print out



Understands both 10,000.50 and 10.000,50, but treats 10,000 and 10.000 as 10
Half decimals are rounded up, negative half decimals down