Convert double to long such that it equals increments from zero

前端 未结 0 713
孤独总比滥情好
孤独总比滥情好 2021-01-29 19:59

Does there exist, or can you create, a fast method A() which converts a double to a long such that:

A(0d) = 0L
A(Math.nextUp(0d)) = 1L
A(Math.nextUp(Math.nextUp(0         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题