Decimal time values not accepted in parameters or procedures

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

In timing diagrams despite it being OK to write:

 @3.5
 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 (294,540 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 (140 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.


@startuml
binary "line" as line

!$a = 3.9
!$b = 4

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

@0
line is low

@3
line is high: $test($a, $b)
@enduml

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

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

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

@enduml
...