//convert double to needed NSString,such 12000.34 -> 12,000
- (NSString *)convertDoubleToString: (double)doub {
NSNumberFormatter *numberFormatter = [[[NSNumberFormatter alloc] init] autorelease];
[numberFormatter setNumberStyle: NSNumberFormatterCurrencyStyle];
NSString *distanceStr = [numberFormatter stringFromNumber:[NSNumber numberWithDouble:doub]];
distanceStr = [distanceStr substringFromIndex:1];
NSRange ran = [distanceStr rangeOfString:@"."];
distanceStr = [distanceStr substringToIndex:ran.location];
return distanceStr;
}
分享到:
相关推荐
mysql-server_8.0.34-1ubuntu22.04_amd64.deb-bundle.tar 适用于ubuntu 22.04
httpd-2.4.46-o111i-x64-vc15_...7.2.34-Win32-VC15-x64.ziphttpd-2.4.46-o111i-x64-vc15_php-7.2.34-Win32-VC15-x64.ziphttpd-2.4.46-o1
libselinux-2.5-12.el7.x86_64.rpm libselinux-python-2.5-12.el7.x86_64.rpm libselinux-utils-2.5-12.el7.x86_64.rpm libsemanage-2.5-11.el7.x86_64.rpm libsemanage-python-2.5-11.el7.x86_64.rpm libsepol-2.5-...
php7 安装依赖
<artifactId>javax.servlet-api</artifactId> <version>***</version> </dependency> ``` # Gradle依赖: ``` Gradle: implementation group: 'javax.servlet', name: 'javax.servlet-api', version: '***' ...
fuse-2.7.4-8_12.el5.i386.rpm fuse-kmdl-2.6.18-274.18.1.el5-2.7.4-8_12.el5.i686.rpm fuse-libs-2.7.4-8_12.el5.i386.rpm fuse-ntfs-3g-2013.1.13-2.el5.rf.i386.rpm fuse-2.7.4-8_12.el5.x86_64.rpm fuse...
标题 "php-7.2.34-nts-Win32-VC15-x64.zip" 提供的信息是关于一个适用于Windows操作系统的PHP环境包,具体为版本7.2.34,非线程安全(NTS)版本,且是64位编译,由Visual C++ 15(VS2017)编译器构建。 PHP...
php7 安装依赖
mysql-liunx安装包
docker-ce-17.03.2.ce-1.el7.centos.x86_64 Centos7 离线安装包和依赖包、 audit-libs-python-2.7.6-3.el7.x86_64.rpm checkpolicy-2.5-4.el7.x86_64.rpm docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm ...
标题中的"VirtualBox-5.2.34-133893-Win.zip"指的是VirtualBox的特定版本5.2.34,版本号为133893,专为Windows操作系统设计。这个压缩包包含了在Windows环境下安装和运行VirtualBox所需的所有文件。 虚拟化技术是一...
ambari-2.7.5 编译过程中四个大包下载很慢,所以需要提前下载,包含:hbase-2.0.2.3.1.4.0-315-bin.tar.gz ,hadoop-3.1.1.3.1.4.0-315.tar.gz , grafana-6.4.2.linux-amd64.tar.gz ,phoenix-5.0.0.3.1.4.0-315....
RHEL 7.1安装MySQL 5.6的依赖包:perl-Data-Dumper-2.145-3.el7.x86_64.rpm ------------------------------------------------------------------------------------
dbus-1.10.24-15.el7 dbus-libs-1.10.24-15.el7 dbus-x11-1.10.24-15.el7 firefox-68.10.0-1.el7.centos nspr-4.21.0-1.el7 nss-3.44.0-7.el7_7 nss-pem-1.0.3-7.el7 nss-softokn-3.44.0-8.el7_7 ...
jakarta.servlet.jsp.jstl-api-2.0.0.jar
php7 安装依赖
IEEE Std C57.12.34-2015中文.pdf
jasperreports mvn依赖包olap4j-0.9.7.309-JS-3,编译后缺少依赖包olap4j-0.9.7.309-JS-3。
php7 安装依赖
javax.ws.rs-api-2.0.jar