- 2024-07-17自己实现sprintf功能,用于把三个float转换成字符串格式,速度比sprintf快了20倍
float转字符串使用sprintf太慢了,自己实现sprintf功能,用于把三个float转换成字符串格式,速度比sprintf快了20倍!运行结果如下图:例程:#include<stdio.h>#include<string.h>#include<stdlib.h>#include<time.h>#defineRUN_COUNT10000000//运行次数/*实现sprin
- 2023-07-06【滨州学院】办公用纸报销-JS-金额计算
JS:报销单:pcvarA4ShuLiang=mini.get('A4ShuLiang');varA4DanJia=mini.get('A4DanJia');varA3ShuLiang=mini.get('A3ShuLiang');varA3DanJia=mini.get('A3DanJia');A4ShuLiang.on('valuechanged',codeV
- 2023-02-21金额转换
convertCurrency(money){//汉字的数字constcnNums=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'];//基本单位constcnI
- 2023-02-17vue中小写数字转大写汉字
numTocoggle(money){//汉字的数字varcnNums=newArray('零','壹','贰','叁','肆','伍','陆','柒','捌','玖');//基本单位varcnIntRadice=ne