declare @d decimal(18,2) set @d=06.85 select @d = case when (100*(@d- floor(@d)))>59 then floor(@d)+1 else floor(@d) end + floor((100*(@d- floor(@d)))% 60)/100 select @d
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)