Loading ...
Sorry, an error occurred while loading the content.
 

[Clip] min+sec revisited

Expand Messages
  • Claes Gauffin
    Hi BONG, Fiddling around with arrays, I had a little think. The result brought down the size of the clip. In the previous attempt I also didn t handle the
    Message 1 of 1 , Aug 27 9:20 AM
      Hi BONG,

      Fiddling around with arrays, I had a little think.
      The result brought down the size of the clip.
      In the previous attempt I also didn't handle the integer division right

      Regards /Claes

      ^!SetListDelimiter :
      ^!SetArray %t1%=^?[Enter mm:ss]
      ^!SetArray %t2%=^?[and another mm:ss]
      ^!Set %sec3%=^$Calc(^$Calc(^%t12% + ^%t22%)$ MOD 60)$
      ^!Set %min3%=^$Calc(^%t11% + ^%t21% + (^%t12% + ^%t22%) DIV 60;0)$
      ^!Info ^%t11% ^%t12%^%NL%^%t21% ^%t22%^%NL%^%min3% ^%sec3%
    Your message has been successfully submitted and would be delivered to recipients shortly.