지수표기법 1e18 (Exponential Notation)
본문 바로가기

Network&etc

지수표기법 1e18 (Exponential Notation)

자바스크립트 코딩중에
1000000000000000000를 쓸일이 있었는데
숫자가 너무크다는 브라우저 콘솔메시지를 받았다.
 
검색해보니 1e18로 쓰면된다고해서 적용해보니 작동이 잘되고 숫자가 크다는 콘솔 메시지도 사라졌다.
동료 개발자에게 물어보니 지수 표기법이라고해서 10의배수가 너무많은경우 e(지수)를 이용해서 보기쉽게해주는 방법이라고한다.
 
1e18은 쉽게 말해서

 

1e18 = 1 * 10^18

또 + - 를 넣어서 소숫점위치를 조정할 수 있다.

브라우저 콘솔

 

+를 붙이면 1.0xxx으로 시작하는것이고

-를 붙이면 0.1xxx으로 시작한다고한다.

컴퓨터가 지수표기법을 인식한다는것이 신기하다.

 

https://stackoverflow.com/questions/53096246/what-does-the-number-1e18-in-ruby-mean

 

what does the number 1e18 in ruby mean

I am trying to replace the number 18 in 1e18 with a variable but everything I have tried gives an error. Perhaps if I knew what it does I can be able to write the formula myself differently. What ...

stackoverflow.com

https://seulcode.tistory.com/461

 

지수 표기법 (Exponential notaion) feat. vim: e+01, e-01

Exponential notation - 지수 표기법 feat. vim 지수 표기법은 많은 10의배수가 사용될 경우 모두 표시하기 어렵기 때문에 지수(e)를 사용하여 표기를 하는 방식이다. 가장 쉽게 vim에서 지수 표기를 해보자

seulcode.tistory.com

10진수혹은 지수표기법을 표현한 과학적 표기법 변환기

https://www.inchcalculator.com/scientific-notation-calculator/

 

Scientific Notation Calculator and Converter

Use the scientific notation conversion calculator to convert a number to scientific notation, E notation, and engineering notation and back.

www.inchcalculator.com

 

반응형

'Network&etc' 카테고리의 다른 글

크롬 commons.js 에러  (0) 2023.03.14
10진수, 16진수, 2진수  (0) 2022.12.22
웹접근성 참고  (0) 2022.03.13
virtualbox 윈도우설치  (0) 2021.08.02
window10 iso다운받는방법  (0) 2021.08.02