significant-digits Questions

8

Solved

Say I have any of the following numbers: 230957 or 83487 or 4785 What is a way in Ruby I could return them as 300000 or 90000 or 5000, respectively?
Levorotatory asked 3/8, 2010 at 21:32

1

Solved

I'm trying to write code in MATLAB that will round number to certain (as I ask) significant digits. I'm not sure how to do it. Any suggestions?
Wrought asked 13/11, 2014 at 20:35

1

Solved

Possible Duplicate: Display Float as String with at Least 1 Decimal Place Given the following values: 23.50 15 19.3500 31.505 45.6670 How can I achieve the following display: 23...
Emergency asked 26/12, 2012 at 16:4

3

Solved

I would like to make it so one of my UILabels only shows a maximum of 3 digits. So, if the associated value is 3.224789, I'd like to see 3.22. If the value is 12.563, I'd like to see 12.5 and if th...
Sg asked 23/3, 2012 at 16:3

3

Solved

This is a simple question but it is starting to annoy me that I cant find a solution.... I would like to be able to keep the 0.0 when using it as an output when using paste or paste0 so if i have ...
Implied asked 3/9, 2012 at 6:41

4

Solved

I want to represent a floating-point number as a string rounded to some number of significant digits, and never using the exponential format. Essentially, I want to display any floating-point...

3

Solved

I want to extract the n most significant bits from an integer in C++ and convert those n bits to an integer. For example int a=1200; // its binary representation within 32 bit word-size is // 000...
Megathere asked 15/3, 2012 at 11:8

2

Solved

I have a DecimalFormat object which I'm using to format all of my double values to a set number of digits (let's say 2) when I'm displaying them. I would like it to normally format to 2 decimal pla...
Glendaglenden asked 12/12, 2010 at 23:36

4

Solved

When using double.Parse, it seems to like to string away any trailing (insignificant) zeros from the string that I'm converting. I would like double.Parse to keep to places after the decimal. For e...
Lachellelaches asked 11/12, 2010 at 6:49

4

Solved

I am using the following code to show percentage using String.Format but I also want to limit the number of significant figures to 2, the two don't seem to play well together. How can I get the two...
Ludicrous asked 21/6, 2010 at 14:10

© 2022 - 2024 — McMap. All rights reserved.