文件名称:Money
-
所属分类:
- 标签属性:
- 上传时间:2013-09-25
-
文件大小:1.11kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
给定一个浮点数,将其转换为金额的中文大写形式的字符串。例如,123.45表示为“壹佰贰拾叁元肆角伍分”。
注意以下几种情况:
A.当金额为整数时,只表示整数部分,省略小数部分,并添加“整”字,例如123表示成“壹佰贰拾叁元整”。
B.当金额中含有连续的0时,只需写一个“零”即可。例如10005表示为“壹万零伍元整”。
C.10的省略表示。例如110表示为“壹佰壹拾元整”,而10表示为“拾元整”。
D.100表示为“壹佰元整”,1000表示为“壹仟元整”-Given a floating-point number, convert it to the amount of Chinese capital in the form of a string. For example, 123.45 is expressed as " Hundred Twenty three million four corner five minutes." Note the following situations: A. When the amount is an integer, only indicates the integer part, fractional part is omitted, and add the " whole" word, for example 123 represents a " Hundred Twenty three yuan a whole." B. When the amount of contiguous 0, only write a " zero" button. For example, 10005 is expressed as " ten thousand zero five yuan a whole." C. 10 are omitted. For example, 110 is represented as " Hundred one hundred yuan a whole," and 10 as " ten-dollar whole." D. 100 is represented as " 100 each whole" , 1000 as " one thousand yuan a whole," etc.
注意以下几种情况:
A.当金额为整数时,只表示整数部分,省略小数部分,并添加“整”字,例如123表示成“壹佰贰拾叁元整”。
B.当金额中含有连续的0时,只需写一个“零”即可。例如10005表示为“壹万零伍元整”。
C.10的省略表示。例如110表示为“壹佰壹拾元整”,而10表示为“拾元整”。
D.100表示为“壹佰元整”,1000表示为“壹仟元整”-Given a floating-point number, convert it to the amount of Chinese capital in the form of a string. For example, 123.45 is expressed as " Hundred Twenty three million four corner five minutes." Note the following situations: A. When the amount is an integer, only indicates the integer part, fractional part is omitted, and add the " whole" word, for example 123 represents a " Hundred Twenty three yuan a whole." B. When the amount of contiguous 0, only write a " zero" button. For example, 10005 is expressed as " ten thousand zero five yuan a whole." C. 10 are omitted. For example, 110 is represented as " Hundred one hundred yuan a whole," and 10 as " ten-dollar whole." D. 100 is represented as " 100 each whole" , 1000 as " one thousand yuan a whole," etc.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Money.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.