Question: Convert/print the integers in float format



I am working on a project where Maple's output is fed to another software which requires all it's input in specific format. So, I want to print this expression,say

y=+2.*x+.2, in this software, but it takes input as

y=2*x+0.2, So now I have to change

+2. to 2.0 or 2 (if it's starting of the equation)

-2. to -2.0

.2 to 0.2


Is there any way to convert all the numbers in the equation to the specific format without breaking the expression and solving for each number?


P.S: Note that I am using RegSubs but there are many iterations and many different cases.

Please Wait...