方法1
var ?a=1.23
var aString:String?=a.toString()
var index_=aString!!.indexOf(".");
var endString=aString.subString(index_);
方法2
Object obj=1.23;
if(obj instanceof Number){
int a=(Number)obj.intValue();
float end=(float)obj-a;
}
方法1
var ?a=1.23
var aString:String?=a.toString()
var index_=aString!!.indexOf(".");
var endString=aString.subString(index_);
方法2
Object obj=1.23;
if(obj instanceof Number){
int a=(Number)obj.intValue();
float end=(float)obj-a;
}