irek
irek

Reputation: 1115

multiplying and rounding numbers using sed

I have the following question for the scripting experts: how to multiply the number i.e. 12.34567 by 100 and then round it to two decimals using sed?

Thanks in advance! Irek

Upvotes: 2

Views: 621

Answers (1)

High Performance Mark
High Performance Mark

Reputation: 78316

Here's the source for an RPN calculator written in sed. That should get you started.

Upvotes: 3

Related Questions