• Hello Team

    FedEx API couldn’t able to calculate the weight of the entered decimal value.
    FedEx only calculate the weight of nearest higher integer value.

    e.g.
    if the product price is 100 Rupee per 1Meter.
    weight is 140gram (0.140 kg) per 1Metre

    1. if user input the quantity as 3.3 Meter (decimal), Price calculated is 330 Rupee, Weight is 0.462 kg (3.3 * 0.140).
    2. if user input the quantity as 3.8 Meter (decimal), Price calculated is 380 Rupee, Weight is 0.532 kg (3.8 * 0.140).

    On the both case, FedEx API must calculate the cost according to weight.
    on the 1st case weight is bellow 0.500 kg, so FedEx must show the cost with bellow 0.500 kg and
    on the 2nd case weight is bellow 1 kg, so FedEx must show the cost with bellow 1 kg.

    But here what happening, FedEx calculate the weight of nearest upper integer value.
    whatever the input quantity is in between 3.1, 3.2 to 3.9 FedEx calculate the weight for 4.
    if the input quantity is in between 5.1 to 5.9 FedEx calculate the weight for 6.

    FedEx Charge like this (variation is 0.500 kg)
    bellow 0.500 kg, cost = X
    bellow 1 kg, cost = X + X
    bellow 1.5 kg, cost = X + X + X etc

    so in the 1st case user input the quantity is 3.3 meter and weight is 0.463 kg. here FedEx must show the cost for bellow 0.500 kg.
    but here FedEx calculate the weight as 4 meter (nearest integer value) and weight is 0.560 kg (4 * 0.140), which is not correct.

    So the conclusion is FedEx API couldn’t able to calculate the weight of user input decimal quantity value.

    Please help on this problem. you can check with our product.

    Thanks

  • The topic ‘FedEx API couldn’t able to calculate the weight of the entered decimal value.’ is closed to new replies.