A lot of people believe. "IT skills are omnipotent."
Are you sure?
I like IT technology, but it is only one tool.
And a lot of knowledge of the web, but many things that have not been validated.
This blog is showing the correct IT knowledge.
Jqgrid 조회 레코드 개수 구하기
공유 링크 만들기
Facebook
X
Pinterest
이메일
기타 앱
개발시에 그리드의 조회된 count로 판단을 할 경우가 많아 Note합니다.
var countRow = $("#jqgrid2").getGridParam("records");
1. user 생성 . OS에서 유저 생성 . mkuser testuser 2. 권한 설정 . connect 권한 > db2 grant connect on database to user testuser . connect 확인 > db2 connect to test_db user testuser using testpassword . select 권한 > db2 grant select on test_db.test_table to user testuser 3. toad 접속 . node 확인 > db2 list node directory ; node name, Hostname, Service name * connect 권한만 준 경우 select 할 수 없음. * table 별로 select 권한 설정.
[문제] 웹사이트 수정요구를 반영하는 중에 재미있는 현상을 발견 윈도우 계산기 : 214500 / 1.1 = 195000 -- 정답 네이버 계산기 : 214500 / 1.1 = 194999.99999999997 자바스크립트 : 214500 / 1.1 = 194999.99999999997 [해결] 부동소수점 연산의 오류도 생각되는데... Math.floor 와 toFixed 를 사용하여 해결함 10단위 절사의 예 Math.floor(((parseInt(val) / (1.1)).toFixed(0))/10)*10; ===================================================== 1.23 * 99070 위와 같은 식을 계산하면 결과 값이 121856.1 이라는 결과가 나온다. 하지만 자바스크립트로 계산할 경우 아래와 같은 이상한 결과 값이 나온다. 121856.09999999999 자세한 원인은 잘 모르겠지만, 아무 숫자형에 관련되어 있는 것 같다. parseFloat(1.23 * 99070).toFixed(2) float 형태로 변환해 준 다음 표현할 소수점 아래 자리수를 적어주면 결과값이 올바르게나온다. 121856.10
댓글
댓글 쓰기