The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Divide by 100, HTML code to divide
Erwin M
post Aug 13 2020, 08:40 AM
Post #1





Group: Members
Posts: 1
Joined: 13-August 20
Member No.: 27,487



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
Erwin M   Divide by 100   Aug 13 2020, 08:40 AM
Christian J   Hello, ${fktRPrijs:${#amount}} The ...   Aug 13 2020, 09:35 AM
pandy   And HTML won't create any PDFs or anything els...   Aug 13 2020, 10:51 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 4th June 2024 - 07:26 AM