Count, 카운트
JavaScript, ECMAScript'JavaScript, ECMAScript' 카테고리의 다른 글
| 문법 기본 (0) | 2020.10.07 |
|---|---|
| 자바스크립트 역사. (0) | 2020.09.21 |
| 실수를 정수로 바꾸는 방법 (0) | 2020.03.04 |
| Hoisting.호이스팅 (0) | 2020.02.12 |
| 자바스크립트.변수.모니터링워처 (0) | 2020.02.01 |
| 문법 기본 (0) | 2020.10.07 |
|---|---|
| 자바스크립트 역사. (0) | 2020.09.21 |
| 실수를 정수로 바꾸는 방법 (0) | 2020.03.04 |
| Hoisting.호이스팅 (0) | 2020.02.12 |
| 자바스크립트.변수.모니터링워처 (0) | 2020.02.01 |
1) https://flutter-ko.dev/docs/get-started/install/windows
2) bin 디렉토리를 PATH 추가
3) flutter 디렉토리에 flutter_console.bat 을 관리자 권한으로 실행
* 관리자 권한으로 실행하지 않으면 flutter 명령이 멈춘 상태로 가만히 있게 된다.
4) flutter_console> flutter doctor
안드로이드 SDK 설치에 [x] ,[!] 등등이 나오므로 안나오게 하자.
참조 : https://www.geeksforgeeks.org/how-to-convert-a-float-number-to-the-whole-number-in-javascript/
There are various methods to convert float number to the whole number in JavaScript.
filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 4.59; var x = 4.59; var z = Math.floor(x); document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 4.59 is 4filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 4.59; var x = 4.59; var z = Math.ceil(x); document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 4.59 is 5filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 4.59; var x = 4.59; var z = Math.round(x); document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 4.59 is 5filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 4.59; var x = 4.59; var z = Math.trunc(x); document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 4.59 is 4filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 3.54; var x = 3.54; var z = parseInt(x); document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 3.54 is 3filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 4.59; var x = 4.59; var z = ~~x; document.write("Converted value of " + x + " is " + z); </script> |
Output :
filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 5.67; var x = 5.67; var z = x | 0; document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 5.67 is 5filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 5.63; var x = 5.63; var z = x >> 0; //it is same as we are dividing the value by 1. document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 5.63 is 5filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 5.68; var x = 5.68; //it is same as we are dividing the value by 1. var z = x >>> 0; document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 5.68 is 5filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 5.48; var x = 5.48; var z = x - x%1; document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 5.48 is 5filter_none
edit
play_arrow
brightness_4
|
<script> //float value is 5.49; var x = 5.49; var z = x ^ 0; document.write("Converted value of " + x + " is " + z); </script> |
Output :
Converted value of 5.49 is 5
| 자바스크립트 역사. (0) | 2020.09.21 |
|---|---|
| Count, 카운트 (0) | 2020.03.09 |
| Hoisting.호이스팅 (0) | 2020.02.12 |
| 자바스크립트.변수.모니터링워처 (0) | 2020.02.01 |
| 한글 받침 구별법 (0) | 2019.04.15 |