如题所述
æä¸è¬ç¨çæ¯å¸è½¯æ¥è¡¨FineReport,å®åªè¦è¾å
¥ææ¬å½æ°å°±å¯ä»¥äºï¼cnmoney(number,unit)è¿å人åå¸å¤§åã
unitï¼åä½ï¼âsââbââqââwââswââbwââqwââyââsyââbyââqyââwyâåå«è¡¨ç¤ºâæ¾ââä½°ââä»ââä¸ââæ¾ä¸ââä½°ä¸ââä»ä¸ââ亿ââæ¾å¿ââ佰亿ââä»äº¿ââä¸äº¿â
åä½å¯ä»¥ä¸ºç©ºï¼å¦æ为空ï¼åç´æ¥å°number转æ¢ä¸ºäººæ°å¸å¤§åï¼å¦åå å°numberä¸åä½çè¿å¶ç¸ä¹ï¼ç¶ååå°ç¸ä¹çç»æ转æ¢ä¸ºäººæ°å¸å¤§åã
示ä¾
CNMONEY(1200)çäºå£¹ä»è´°ä½°åæ´ã
CNMONEY(12.5,"w")çäºå£¹æ¾è´°ä¸ä¼ä»åæ´ã
CNMONEY(56.3478,"bw")çäºä¼ä»éä½°åæ¾èä¸æä»æä½°åæ´ã
CNMONEY(3.4567,"y")çäºå亿èä»ä¼ä½°éæ¾æä¸åæ´ã
unitï¼åä½ï¼âsââbââqââwââswââbwââqwââyââsyââbyââqyââwyâåå«è¡¨ç¤ºâæ¾ââä½°ââä»ââä¸ââæ¾ä¸ââä½°ä¸ââä»ä¸ââ亿ââæ¾å¿ââ佰亿ââä»äº¿ââä¸äº¿â
åä½å¯ä»¥ä¸ºç©ºï¼å¦æ为空ï¼åç´æ¥å°number转æ¢ä¸ºäººæ°å¸å¤§åï¼å¦åå å°numberä¸åä½çè¿å¶ç¸ä¹ï¼ç¶ååå°ç¸ä¹çç»æ转æ¢ä¸ºäººæ°å¸å¤§åã
示ä¾
CNMONEY(1200)çäºå£¹ä»è´°ä½°åæ´ã
CNMONEY(12.5,"w")çäºå£¹æ¾è´°ä¸ä¼ä»åæ´ã
CNMONEY(56.3478,"bw")çäºä¼ä»éä½°åæ¾èä¸æä»æä½°åæ´ã
CNMONEY(3.4567,"y")çäºå亿èä»ä¼ä½°éæ¾æä¸åæ´ã
温馨提示:答案为网友推荐,仅供参考