부동 소수점

Jmnote (토론 | 기여)님의 2016년 6월 29일 (수) 08:32 판
  다른 뜻에 대해서는 CSS float 속성 문서를 참조하십시오.
floating point
부동소수점
float

1 부동소수점

  • 실수를 표현할 때 소수점의 위치를 고정하지 않고 그 위치를 나타내는 수를 따로 적는 것
  • 가수(유효숫자)와 지수(소수점의 위치)로 나누어 표현
  • 장점: 고정 소수점 방식보다 넓은 범위의 수를 나타낼 수 있음
  • 단점: 근사값, 연산속도 느림

2 float

  • 부동소수점 수를 나타내는 자료형
  • 실수를 표현할 때 많이 사용함
[math]\displaystyle{ \text{significand} \times \text{base}^\text{exponent} }[/math]
[math]\displaystyle{ 1.2345 = \underbrace{12345}_\text{significand} \times \underbrace{10}_\text{base}\!\!\!\!\!\!^{\overbrace{-4}^\text{exponent}} }[/math]

3 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}