Good morning.
I need Get the whole part of a decimal number without rounding.
I have this:
case when cast(f1 as integer)/3600<1 then '0'
when cast(f1as integer)/3600>=1 then
cast(f1 as integer)/3600 END
I try this:
case when truncate (cast(f1 as integer)/3600<1,1) then '0'
when truncate ( cast(f1 as integer)/3600>=1,1) then
truncate (cast (f1 as integer)/3600,1) END
But not is ok
Thanks.