Skip to main content
edited tags
Link
200_success
  • 145.7k
  • 22
  • 191
  • 481
deleted 24 characters in body; edited tags
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

I have a floatfloat in the String strFloat strFloat. I wanted to convert it to a rounded integer also stored in a String. This is what I came up with. It looks awful to me. Please make, so please offer some suggestions for improvement...

String strInteger = new Integer(Float.valueOf(strFloat).intValue()).toString()

I have a float in the String strFloat. I wanted to convert it to a rounded integer also stored in a String. This is what I came up with. It looks awful to me. Please make suggestions for improvement...

String strInteger = new Integer(Float.valueOf(strFloat).intValue()).toString()

I have a float in the String strFloat. I wanted to convert it to a rounded integer also stored in a String. This looks awful to me, so please offer some suggestions for improvement.

String strInteger = new Integer(Float.valueOf(strFloat).intValue()).toString()
Make code block a code block.
Source Link
rolfl
  • 98.1k
  • 17
  • 220
  • 419

I have a float in the String strFloat. I wanted to convert it to a rounded integer also stored in a String. This is what I came up with. It looks awful to me. Please make suggestions for improvement...

String strInteger = new Integer(Float.valueOf(strFloat).intValue()).toString()

String strInteger = new Integer(Float.valueOf(strFloat).intValue()).toString()

I have a float in the String strFloat. I wanted to convert it to a rounded integer also stored in a String. This is what I came up with. It looks awful to me. Please make suggestions for improvement...

String strInteger = new Integer(Float.valueOf(strFloat).intValue()).toString()

I have a float in the String strFloat. I wanted to convert it to a rounded integer also stored in a String. This is what I came up with. It looks awful to me. Please make suggestions for improvement...

String strInteger = new Integer(Float.valueOf(strFloat).intValue()).toString()
Source Link
Loading