Code Block - two inputs, roundup and rounddown

Hello,
I want roundup and down value by code block.
Value x should be rounddown and if value is 1 then score should be 0.9
Value y should be roundup and if value is 1 then score should be 1
How to fix it?
Schowek01

Regards

Hello

Delete your content online 3 and 6
and put a ; at the end of line 2 and 5.

cordially
christian.stan

It works. Thanks :wink:

1 Like