Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Javascript - Percent Negativo

$
0
0

Hello good afternoon to all

I have the following scenario, I have field A and field B that are currencies that stores the total of the current month and the other of the month before the current month.

I am using the following Javascript rule:

Var Result = fieldB / fieldA

Var Percent = Result * 100

Example:

50/100 = 0.5

0.5 * 100 = 50%

When it is added he calculates right, but when it is described he is not calculating right.

For example in the calculation that I am running it should bring 0.23 and it is giving 131%, could someone tell me what it can be?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images