0
Evaluate Issuance Fee for Weekly Cycle
    [Documentation]    This keyword evaluates the FIRST Projected Cycle Due on a 'Weekly' cycle.
    [Arguments]    ${PrincipalAmount}    ${Rate}    ${RateBasis}
    ${Time}    Set Variable    7
    ${Time}    Convert To Integer    ${Time}
    ${ProjectedCycleDue}    Evaluate    (((${PrincipalAmount})*(${Rate}))*(${Time}))/${RateBasis}
    ${ProjectedCycleDue}    Convert To Number    ${ProjectedCycleDue}    2
    [Return]    ${ProjectedCycleDue}

The keyword returned a number with the format "1500.00". Is there a way in robot framework where we can format the number to have a comma?

Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685

1 Answers1

0

Add this line before return

${ProjectedCycleDue}=    Replace String    ${ProjectedCycleDue}    .    ,

Similar problem below; Since robot is python wrapper the solution could be the same.

convert decimal mark

andrexorg
  • 77
  • 4