Function convertRialToToman

  • Converts a given amount in Iranian Rials to Tomans.

    In Iran, 1 Toman is equivalent to 10 Rials. This function performs the conversion by dividing the input value in Rials by 10.

    Parameters

    • rial: number

      The amount in Iranian Rials to be converted.

    Returns number

    • The equivalent amount in Tomans.
    const tomans = convertRialToToman(10000);
    console.log(tomans); // Outputs: 1000