Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9022647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:33:57+00:00 2026-06-16T05:33:57+00:00

Any way to convert Float to string with out getting E (exponent). String str

  • 0

Any way to convert Float to string with out getting E (exponent).

String str = String.valueOf(floatvalue);
txtbox.settext(str);

and i am using NumericTextFilter.ALLOW_DECIMAL in my textField which allow decimal but not E.

i am getting like this 1.3453E7 but i want it something like 1.34538945213 due to e i am not able to set my value in edit text.
so any way to get value with out e.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:33:58+00:00Added an answer on June 16, 2026 at 5:33 am

    I’m not 100% sure I understand what number you’re trying to format. In the US (my locale), the number 1.3453E7 is not equal to the number 1.34538945213. I thought that even in locales that used the period, or full stop (.) to group large numbers, you wouldn’t have 1.34538945213. So, I’m guessing what you want here.

    If you just want to show float numbers without the E, then you can use the Formatter class. It does not, however, have all the same methods on BlackBerry that you might expect on other platforms.

    You can try this:

         float floatValue = 1.3453E7f;
         Formatter f = new Formatter();
         String str = f.formatNumber(floatValue, 1);
         text.setText(str);
    

    Which will show

    13453000.0

    The 1 method parameter above indicates the number of decimal places to show, and can be anything from 1 to 15. It can’t be zero, but if you wanted to display a number without any decimal places, I would assume you would be using an int or a long for that.

    If I have misunderstood your problem, please post a little more description as to what you need.

    I’ll also mention this utility class that apparently can be used to do more numeric formatting on BlackBerry, although I haven’t tried it myself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any smart way to convert a float like this: float f = 711989.98f; into
Is there any way to convert a SWF to pdf using php. i mean
Is there any way to convert varbinary to ASCII varchar string (base64, md5, sha1
In C++, what's the generic way to convert any floating point value (float) to
Is there any way to convert a android.graphics.Bitmap instance into jpeg in android?
Is there any way to convert from DB.Null to decimal in C#? Like Object[]
Is there any way to convert differential backup to SQL statements which will produce
Is there any way to convert from toString back to the object in Java?
Is there any way to convert the image so it appears as a gray
is there any way to convert durtion of MediaPlayer that is in long to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.