怎样取两个非整数的mod

SELECT 1.0*(CAST(125.258 *100000 AS INT) % CAST(0.55 *100000 AS INT))/100000
---------------------------------------------------------------

declare @i int
set @i=125.258/0.55
select 125.258-0.55*@i as m

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus