Actually, it does not say dollars or cents. If the rate is 0.602 dollars (60 cents) then it will play 0 point 6, 0, 2 per minutes (that voice prompt is wrong).
That’s not my code though. It was always like that. ASTPP does not say the currency name dollars or cents when announcing the rate.
if someone can write the below function to retrieve the “Decimal_Points” database value from Global settings, I can probably make the code dynamic based on system configuration.
– Function to retrieve the number of decimal points from the database
function get_decimal_points()
– Replace the following line with the decimal_points value from the Global settings.
return 3 – Assuming a default of 3 decimals if value is not found
end
Anyone? What’s the lua code to retrieve the “Decimal_Points” database value from Global settings. That’s all I need to make the decimal points dynamic.