Truncation Xlate Error

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Truncation Xlate Error

  • Creator
    Topic
  • #48524
    April Dunbar
    Participant

      Good morning,

      I keep getting the following error in my log file but am not sure how to correct it.  

      “Truncation occurred on decimal part of numeric value .00”

      If you see attachment, I am trying to convert weight from kg to Ib.  My conversion works, but I keep getting this error.  Any help is greatly appreciated.

      Thanks, April

    Viewing 4 reply threads
    • Author
      Replies
      • #58871
        Rentian Huang
        Participant

          April,

          If you are comparing number, you should use == instead of eq in your IF action. Other than that, I don’t see anything wrong.

          Sam   8)

        • #58872
          Anonymous
          Participant

            1. Check your variant to see it is setup correctly.

            2. This conversion can be easily done with TCL.

            -Thanks

            Reggie

          • #58873
            April Dunbar
            Participant

              Hi Sam and Reggie,

              I made the change in the xlate and looked at my variant, but I am still getting the errors.  

              How would I perform the multiplication in tcl?

              Thanks, April

            • #58874
              Anonymous
              Participant

                April,

                please post the xlate. As I said earlier, conversion can be done in tcl.

                for an instance:

                hcitcl>set AA 5

                hcitcl>set BB 2.2

                hcitcl>set CC [expr $AA * $BB]

                hcitcl>puts $CC

                11.0

                hcitcl>

                you woul dbe better off using tcl. Use this skeleton to build your script.

                hope this helps.

                reggie

              • #58875
                April Dunbar
                Participant

                  I figured it out – Thanks for your help.  April

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.