cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Remainder in division in descriptors

Contributor

Remainder in division in descriptors

Hi there,

 

When I try to use the code down below aka. to divide the value with '/' I get the full value without the remainder. What should I do if I need the remainder? In most programming languages out there you can use '%' but that doesn't seems to work here?

 

[Buffer=mybuffer3 Set]
           [Value Expression="(100*buffer(mybuffer1))/buffer(mybuffer2)"/]
[/Buffer]

2 Replies
MEGA Partner

Re: Remainder in division in descriptors

Not possible with buffers. You have to use a Macro in stead.

Highlighted
MEGA

Re: Remainder in division in descriptors

Hi Ki6i

 

You can find below an example of call of a VB script macro from a HTML/code descriptor

The call is made using the tag [ExternalCall]
Jerome