Method 1: Use the functions provided by the system, but do not meet the financial requirements of mainland China.
Method 2: Use the following functions.
English:
Static STR num2engstr (real realnum, Boolean shownegative = false)
{
Str aa, BB, T1, T2, T3, B, W, CC, A1;
Int A2, a = 0, c = 0;
Int V, M;
Real tmpreal;
Boolean isnegative = false;
;
Y = realnum;
X = strltrim (strrtrim (num2str (Y, 20, 2, 1, 0 )));
B = strlen (x)-3;
A = 1;
E = substr (X, A, 1 );
Hz2 = 'zero errors and complex errors ';
Hz1 = 'Collect hundreds of millions of yuan from each other and collect tens of thousands of yuan from each other ';
Je = '';
While (E! = '.')
{
H = substr (hz2, str2num (e) * 2 + 1, 2 );
F = substr (Hz1, 24-(B-a) * 2-1, 2 );
If (E! = '0' | (E = '0' & (F = '000000' | f = 'wan' | f = 'yuan ')))
Je = strltrim (strrtrim (JE) + H + F;
Else
Je = strltrim (strrtrim (JE) + h;
A = a + 1;
E = substr (X, A, 1 );
}
A = a + 1;
E = substr (X, A, 1 );
H = substr (X, A + 1, 1 );
If (E = '0' & H = '0 ')
Je = je + 'Integral ';
Else
{
If (E = '0 ')
Je = je + '0' + substr (hz2, str2num (h) * 2 + 1, 2) + 'Min ';
Else if (H = '0 ')
Je = je + substr (hz2, str2num (e) * 2 + 1, 2) + 'angularization ';
Else
Je = je + substr (hz2, str2num (e) * 2 +) + 'angular '+ substr (hz2, str2num (h) * 2 +) + 'Min ';
}
B = strlen (JE );
A = 1;
While (A <B)
{
M = substr (JE, A, 4 );
If (M = '0 Garden '| M = '000000' | M = '000000' | M = '0 0 ')
{
Je = substr (JE, 1, A-1) + strltrim (strrtrim (substr (JE, A + )));
A = A-2;
B = B-2;
}
A = a + 2;
}
If (substr (JE, 1, 2) = 'yuan' & strlen (JE)> 2)
Je = substr (JE, 3, strlen (JE)-2 );
If (isnegative)
Je = 'negative '+ je;
Return je;
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.