How to identify unstable floating point computations?
In numerics, it is very important to be able to identify unstable
schemes and to improve their stability. How to identify unstable
floating point computations?
Algorithm for base-conversion in C?
I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).
Algorithm for base-conversion in C?
I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).
Algorithm for base-conversion in C?
I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).
Algorithm for base-conversion in C?
I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).
Algorithm for base-conversion in C?
I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).
Algorithm for base-conversion in C?
I put in this code which does what it’s supposed to do, but perhaps there is a better or more general approach? I’m converting a 4-digit base 10 number e.g. “11” to base 16 e.g. “17” (which gets written out on the display as 11 when called with 17 because the function takes bits as argument).
Are there numbers that are not representable in base 10 but can be represented in base 2?
C#
has the decimal
type which is used for numbers that needs exact representation in base 10. For instance, 0.1
cannot be represented in base 2 (e.g. float
and double
) and will always be an approximation when stored in variables that are of these types.
Why is it an issue that it takes 2 digits to represent the number 10 in decimal? [closed]
Closed 9 years ago.
Why are floats called “real numbers” in some languages?
Some programing languages, notably Pascal, have a type of numbers called “real”.