The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 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
Christian J
post Aug 13 2020, 09:35 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



Hello,

CODE
${fktRPrijs:${#amount}}

The above is not HTML, could it be javascript/jQuery?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 13 2020, 10:51 AM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



And HTML won't create any PDFs or anything else. What created the PDF?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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: 27th April 2024 - 03:37 AM