Round up or Round Down

Discussion in 'Tally Developer' started by Gopal Rajbhandari, Mar 8, 2015.

    

  1. I want to calculate the MRP in my UDF rounding by Rs. 5. I have used $Rate * 140/100.
    It gives Rs. 445 * 140/100 = 623 but I want to show the value in my UDF Rs. 625.
    Similarly, if calculated amount will be Rs. 621 I want to show Rs. 620 only.

    Is there any solution in TDL ?
     


  2. Sangam

    Sangam New Member


    boss i didn't understand can u explain bit wider..??
     



  3. I already found the solution myself.

    [Field : MRP Fiedl]
    Set As : $$Round:$MyMRP:5

    [System : Formula]
    MyMrp : $Rate*140/100
     
    mpal2311 likes this.


  4. laxman

    laxman Member


    dear please share code
     


  5. mpal2311

    mpal2311 Active Member


    Great !
     


Share This Page