Coming from .NET, I'm trying to understand the following.
DEFINE total_real DECIMAL(12,5)
DEFINE total_dec DECIMAL(6,5)
DEFINE total_int SMALLINT
LET total_real = (total_real / 50)
LET total_int = total_real
LET total_dec = total_real - total_int
What is the purpose of total_real - total_int
?
I tried to do some similar with C# but can't do it without first converting total_int
to double
/decimal
. Is this just converting a decimal
to int
?