Decimal time values not accepted in parameters or procedures

0 votes
asked May 22, 2023 in Bug by Ilias (180 points)

In timing diagrams despite it being OK to write:

 or @:start+3 (where e.g. @0 as :start)

if you try to use 

 @:start+3 or define a named time point as @0.5 as :start) 

you will get an error

1 Answer

0 votes
answered May 22, 2023 by plantuml (295,000 points)

Thanks for the report.

This should be fixed now.

Tell us if it's not working for you!

commented May 22, 2023 by Ilias (180 points)
edited May 23, 2023 by Ilias

Wow impressive turnaround! Respect! That part is working. 

I am not sure if I need to raise a separate issue but the script below is not producing the expected result.

binary "line" as line

!$a = 3.9
!$b = 4

!function $test($a, $b)
!return $a + $b

line is low

line is high: $test($a, $b)

I was trying to get this to work when I discovered the issue:

!$U_ov1 = 3.8
!$U_ov2 = 3.9
!$rate = 0.1
!function $time($a, $b, $c)
!return ($a - $b)/$c

line is low
@+$time($U_ov1, $U_ov2, $rate)
line is high