Int AB (float a)
{
A=a * 1000;
String A=a.T oString ();
String [] s=A.S plit (new char [] {'. '});
If (s.L ength==2) {
String s1=s [1];
Int I=s1. Length;
If (I & gt; {
=3)I=3;
}
Return s1. The Substring (0, I);
}
Return A;
CodePudding user response:
Java to come over? A lot of mistake,There is no need to function a.t ostring itoa function
Function return type is int you return type string must be an error
CodePudding user response:
I use c # bosses