# floating-point's questions - English 1answer

146 floating-point questions.

### 9 Computing the integer square root of large numbers

2 answers, 682 views swift integer floating-point

### 6 Storing angles with overflow errors

Rather than checking if my angle is in the range of 0 to 2pi every time it gets set, I got the idea to store it as an unsigned short with 0xFFFF being +2pi, thus the standard overflow behavior for ...

### 5 Implement strtod parsing

In this comment the OP wrote, I am a newbie so i would like to know how would i parse the negetive numbers/arguments ? In this answer @200_success showed an implementation using the strtod ...

### Parsing a string into a double

2 answers, 93 views beginner c parsing floating-point
I'm trying to understand the strtod() function, and how I can handle any user input given to the function. I assume I tested for everything, however I am hoping for ...

### 1 Make sure the user enters a valid floating-point number in C

I would like to know if this is a good way to make sure the user enters a valid number. ...

### 2 Pythonic way to convert XML attribute to float, or else get None

2 answers, 776 views python python-3.x xml null floating-point
My Python code is converting XML attributes in an ElementTree to appropriate values. How do I best convert a value in this dict to a ...

### 5 Get a floating point number from a string with a finite state machine

2 answers, 254 views c parsing floating-point
I wanted to restart the big-float project I had paused the moment I suddenly realized that the implementation of the main four rounding modes (which I postponed so long, that I got all of the IEEE-754 ...

### 1 Solving quadratic equation in Clojure

3 answers, 151 views beginner clojure floating-point
I wrote a function in Clojure to solve quadratic equations using the quadratic formula The function ...

### 3 BigDecimal class with arbitrary precision

3 answers, 1.681 views c# .net floating-point
I recently came across a need to display very large decimal numbers and realized that I could use a BigDecimal class. After some tinkering I decided to leverage the ...

### 1 Haskell function to format a floating-point number with some precision

I have not yet developed a satisfying coding style in Haskell. In the code snippet below, there is a lot wrong to my taste: Helper functions which should be local to ...

I need to be able to atomically add a 32-bit floating point value to a location in memory. Here is what I came up with. While the code is Windows-specific, I'll extend it with Linux support using <...