Skip to main content
rarur97798982
Inspiring
April 24, 2018
Question

need the sum to be printed as decimal number

  • April 24, 2018
  • 1 reply
  • 255 views

Hi I had written a program to calculate sum of 2 numbers. I need it to be shown as decimal numbers

For example, the input is

0.5+0.5

The output I am getting is

1

The required output is

1.0

I tried parseFloat but it didn't works.

This topic has been closed for replies.

1 reply

Ton Frederiks
Community Expert
Community Expert
April 24, 2018

Is this related to Adobe Illustrator?

If it is, you are probably better off when you post this question in the scripting forum:

Illustrator Scripting