反规格化(denormalized number)

反规格化(denormalized number)

今天抽出一下午时间,学习ieee754的算法,为学习ogles做准备,其中关于犯规格化的理解如下。

IEEE754可能表示的数以[2 n , 2 n+1]的区间分组,以2 23 的密度等分。当向0靠近的时候,可以表示的精度越来越高,因为[2 n , 2 n+1]区间变小。当使用规格化数的时候,最小表示的正数为2-127,这样,在2-127与0之间空出一段区域,无法表示。反规格化时,将[2 -126 , 0 ]表示一个区间,然后用2 23 的密度等分,这样表示到0的范围更宽。同时可以解决指数下溢出的影响,将影响降低到规格化数间取舍的精度上。

标签:

上一篇: static_cast and const_cast的作用 || 下一篇:
News, OpenGL

相关日志

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Leave Comment

(必填)

(必填)