Math 객체의 log1p() 함수는 숫자를 받아들이고 (주어진 숫자+1)의 자연 로그(밑 E)를 반환합니다.
구문
구문은 다음과 같습니다.
Math.log1p(48);
예시
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.log1p(48);
document.write("Result: "+result);
</script>
</body>
</html> 출력
Result: 3.8918202981106265