ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
23 июня
19933 Топик полностью
bialix (20.01.2005 11:52, просмотров: 1) ответил jaga-jaga на не скажи ... помнится мне тут история про short и int ;)
ну-ну. http://en.wikipedia.org/wiki/IEEE_floating-point_standard
short и int -- это было достаточно просто и поучительно. Больше я интами не пользуюсь. А вот на числа с плавающей запятой есть стандарт IEEE 754. Бью цитатой: IEEE 754 specifies four formats for representing floating-point values: single-precision (32-bit), double-precision (64-bit), single-extended precision (>= 43-bit, not commonly used) and double-extended precision (>= 79-bit, usually implemented with 80 bits). Only 32-bit values are required by the standard, the others are optional. Many languages specify that IEEE formats and arithmetic be implemented, although sometimes it is optional. For example, the C programming language, which pre-dated IEEE 754, now allows but does not require IEEE arithmetic (the C float typically is used for IEEE single-precision and double uses IEEE double-precision). Так что не надо тут меня шпильками подкалывать.