How do I correctly round IEEE 754 floating point numbers on the command line?

I want to specify the precision of the output number - the count of fractional digits.

For example, rounding 6.66 to precision 1 should give 6.7.

I have a column of numbers (i.e. 7,2,5,2,6,7,5,3,7,8,9,2,3,5,6,7) What I am trying to do is count how many numbers are between each 7. Not just the first, second, third, etc. but each instance. So, in the number example at the beginning of this question, between the first 7 and the second 7 there are four numbers. Between the second 7 and the third 7 there are two numbers.

As a homework assignment we are required to calculate the harmonic mean using an assembly program being driven by a C program.

We are using 64-bit linux machines and are required to use 64-bit floating point numbers.

I am new to Assembly.

I have a floating point number in file as for example

1> 9.0d-1
2> 4.8d-1

How to convert these numbers to be represented as normal float numbers. I want to convert in sql or by linux command.

I'm struggling with a slight variation on:
How to calculate by taking first field and How to round floating point numbers in shell?

I have a file that looks like (space between columns):

1533 C_P.doc
691 C_M.doc
905 G_S.doc
945 J_Z.doc
1549 J_M.doc
1701 L_B.doc

I want to take the column of numbers and divide each number by 65 (but round up), and add a new column (ideally to left) with these nu

I would like to make my dev sites have port numbers. I thought I would just start at a certain number and increment by 1 every new site. The question is what number should I start with? I have know there are reserved ports at various numbers. Are there a range of numbers that can be assumed safe to use?

This 'Count Numbers' free game teaches children to recognize and write numbers 1- 10, understand missing numbers, greater smaller, and more.

I need to format phone numbers in a text file. They appear as (example) 8014516912

How would I format it so that I can insert a - after the first 3 numbers, and then another - after another 3 numbers, so it would appear as 801-451-6912

How would I do this for all lines that contain a phone number?

I used to have root but not too long ago I flashed the stock tar to return to stock unrooted and when I try to update the new software it gives me an error. I tried to do the firmware upgrade and initialization thing from kies and when I entered the meid it keeps saying to reenter the information because it's invalid.