Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Divide by 100

Posted by: Erwin M Aug 13 2020, 08:40 AM

Hello,

This is my first post here. I'm an absolute noob in HTML, so I appologise if my question is incorrect / incomplete.


I use a program which creates a PDF document with HTML.
In a part of the code that is used to put a number on the PDF this code is used:


<div><span style="font-family: Arial; font-size: 10pt;">${fktRPrijs:${#amount}}</span>


I want the number on the PDF to be 100 times smaller than te number that is currently displayed.
(So when it says 40 in the current PDF, I want it to be 0.40) --> actually it should be 0,40 as we use a comma in my country for fractions,but I suppose that's not relevant.

I tried to modify the code like this:
div><span style="font-family: Arial; font-size: 10pt;">${fktRPrijs:${#amount}}/100</span>

To my surprise the number on the PDF did change, but not to 0.40, but to 4000. (So it multiplied by 100).
Can anybody tell me how I should modify the first line of code so that it does devide the result by 100?

I hope you can help me.

Kind regards,
Erwin

Posted by: Christian J Aug 13 2020, 09:35 AM

Hello,

CODE
${fktRPrijs:${#amount}}

The above is not HTML, could it be javascript/jQuery?

Posted by: pandy Aug 13 2020, 10:51 AM

And HTML won't create any PDFs or anything else. What created the PDF?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)