论文部分内容阅读
人民币小写金额转换为大写,在企业的会计核算及计算机填制单证时最为常见,笔者在有些资料上也见过有关大小写金额转换程序介绍。但对于初学者,往往难以理解和掌握。本文介绍的小程序其基本思路是:把需要转换的金额小写分解为整数和小数两个部分分别取值,抓住余额整数部分的表述每隔4位进行“拾、佰、仟”的循环这个特点,从数的最高位开始,运用初学者几个常用的函数Len()、Substr()、Slr()、Val()、Int()、Alltrm()和条件判断语句If……Endif,循环记句For……Endfor进行转换,不仅语句通俗易懂、层次分明,而且所占用的磁盘空间较少(仅1.44KB),灵活性大。该程序能转换的
RMB lowercase converted into uppercase, accounting and computer companies in the business card fill the most common document, the author also saw some information on the amount of capital conversion program introduced. But for beginners, it is often difficult to understand and master. This article describes the applet the basic idea is: the amount of the lowercase need to be converted into integer and decimal fraction of two values, respectively, to seize the balance of the integer part of the expression every four “pick, Bai, Qian” cycle this Features, starting from the highest number of the beginning of the use of several commonly used beginners Len (), Substr (), Slr (), Val (), Int (), Alltrm () and conditional statement If ... Endif, loop Remember For ... Endfor to convert, not only easy to understand statements, structured, and less disk space (only 1.44KB), flexibility. The program can convert