Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Number problems

csb102155
Level 4
Level 4

Hi All, I'm having problems with the how the number displays when it is calculated.  For example, 5 x 1% should read as .050.  But instead it reads 5.  How can I get it to display as .050?  I'm sure it's a simple solution, but I've yet to find it.

Thanks all for your assistance

Connie

1 Reply
Mandy_Wiesener
Level 5
Level 5

Hi,

you could make the following.

  • first field - UserEntryFieldNumber (for example 5) -
    Pattern num{zzzzzzzz9.99}
  • second field - UserEntryFieldProcent (for example 1) -
    Pattern num{zzzzzzzzzzzz9'%'} not using the the standard-%-pattern
  • target field - calculate-event
    this.rawValue = (UserEntryFieldNumber.rawValue*UserEntryFieldProcent.rawValue)/100;

I work never with the standard procent pattern. It makes never what I want

I hope it will helps,

Mandy