미국 화폐는 센트(0.01)가 최소 기본 단위로, 소수점 이하 2자리까지 표시가 되어야 하는 경우가 많습니다. 소수점 2자리 표시 처리를 위한 방법과 예제 1) sprintf() 함수를 이용하는 방법 2) (추천) number_format를 이용한 방법 520.00 참고: [php] 소수점 이하 2자리까지 표시 php - 확인 - 파이썬 소수점 자리수 버림 code.i-harness.com 2) (추천) number_format 를 이용한 방법 .75를 0.75로 변경하는 포멧 방식 number_format ('.75', 2); //결과는 0.75가 출력됩니다. number_format(float $number [,int $decimals=0]) : string 또는 number_format(float ..