//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;
}
分享到:
相关推荐
<script src="./public/js/jquery-ui-1.10.3.min.js"></script> <script src="./public/js/jquery.datepicker-zh-CN.js"></script> <link href="./public/css/jqueryui/jquery-ui-1.10.3.min.css" rel="stylesheet">...
php7 安装依赖
<artifactId>javax.servlet-api</artifactId> <version>***</version> </dependency> ``` # Gradle依赖: ``` Gradle: implementation group: 'javax.servlet', name: 'javax.servlet-api', version: '***' ...
64位centos按装下按装64位oracle时,centos系统缺少的rpm包,附件内存放着以下rpm按装包: libaio-0.3.105-2.x86_64.rpm libaio-devel-0.3.105-2.i386.rpm libaio-devel-0.3.105-2.x86_64.rpm libaio-devel-0.3.106-...
<artifactId>javax.servlet-api</artifactId> <version>***</version> </dependency> ``` # Gradle依赖: ``` Gradle: implementation group: 'javax.servlet', name: 'javax.servlet-api', version: '***' ...
gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.tar是由 Linaro 公司基于GCC推出的的ARM交叉编译工具。 可用于交叉编译64-bit Armv8 Cortex-A, little-endian目标中的裸机程序、u-boot、Linux kernel、...
标题中的“pdi_ce7.1.0.0-12.zip”指的是Pentaho Data Integration(PDI)社区版的7.1.0.0-12版本的压缩文件。PDI,又称为Kettle,是一款强大的ETL(Extract, Transform, Load)工具,用于数据集成和转换。这个特定...
gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.tar是由 Linaro 公司基于GCC推出的的ARM交叉编译工具。可用于交叉编译32-bit Armv7 Cortex-A, hard-float, little-endian目标中的裸机程序、u-boot、Linux...
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 ...
mysql-liunx安装包
SQL>conn scott/tiger@orcl 2)zip格式包安装配置(只以basic包做为示例) 2.1 下载包:oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.zip 2.2 将包文件解压到指定目录下: #unzip oracle-instantclient...
在WINDOWS的环境下,下载了Instant Client Basic 程序包,然后创建一个子目录d:\OCI中,然后...然后开始”->“设置”->“控制面板”->“系统”->“高级”->“环境变量编辑系统变量列表中的 PATH。将其值设置为:d:\OCI
jasperreports mvn依赖包olap4j-0.9.7.309-JS-3,编译后缺少依赖包olap4j-0.9.7.309-JS-3。
最新版windows Git-2.33.1-64-bit.exe最新版windows Git-2.33.1-64-bit.exe
<artifactId>javax.servlet-api</artifactId> <version>***</version> </dependency> ``` # Gradle依赖: ``` Gradle: implementation group: 'javax.servlet', name: 'javax.servlet-api', version: '***' ...
Themida WinLicense V1.8.X-V2.X最佳脱壳工具 可以使用
javax.servlet.jsp.jstl-api-1.2.1.jar
IEEE Std C57.12.00-2021.pdf
nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl
oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.rpm client 安装包 rpm -> deb : sudo alien xxx.rpm