Problem
Float나 Double 데이터 타입을 String으로 변환 시 1.0 등과같이 정수형이나 1.23000 등 소수점 이하의 범위에서 표현되는 0은 String으로 변환시 표시가 불필요 하기때문에 제거할 필요가 있다. 1.0은 “1”로 1.23000은 “1.23”으로 표시할 방법을 고민해봤다.
by Mr. Latte
Nov 3, 2018
Float나 Double 데이터 타입을 String으로 변환 시 1.0 등과같이 정수형이나 1.23000 등 소수점 이하의 범위에서 표현되는 0은 String으로 변환시 표시가 불필요 하기때문에 제거할 필요가 있다. 1.0은 “1”로 1.23000은 “1.23”으로 표시할 방법을 고민해봤다.
Self-Employed Freelance Software Engineer | Full Stack | Front & Back Experienced (23+ years) | Seeking remote work job opportunity | I am a software engineer in Seoul, Republic of Korea. I am currently interested in data mining and machine learning. I like writing about computer software and interesting subject. If you want to see my curriculum vitae, visit here.