floating-point
Floating point error in representation?
when i make this multiplication 0.94 * 8700 the output is 8177.999999999999 but it should have been 8178[详细]
2023-04-08 19:01 分类:问答Javascript convert huge float to string [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to avoid scientific notation for large numbers in javascript?[详细]
2023-04-08 18:46 分类:问答Algorithm for finding the ratio of two floating-point numbers?
I need to find the ratio of one floating-point number to another, and the ratio needs to be two integers. For example:[详细]
2023-04-08 09:42 分类:问答floating point number [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: extracting mantissa and exponent from double in c#[详细]
2023-04-08 06:49 分类:问答Formatting float values
This is probably a stupid question but anyway. 开发者_如何学JAVA I wan the number I set on my label to be formated nicely like this 20,000,000 .[详细]
2023-04-08 04:42 分类:问答Which way has better accuracy to compute the matrix matrix vector product, A B u?
I want to compute the vector, s = A B u, where s and u are N-dimensional complex vector, A is a N-by-M complex matrix, B is M-by-N complex matrix. Which of the following two ways has better accuracy[详细]
2023-04-08 04:36 分类:问答assert fails when it should not, in Smalltalk Unit testcase
I\'m stumped. Here is my testcase. theTestArray := #(1.2 3 5.1 7). self assert: theTestArraysquareOfAllElements = #(1.44 9 26.01 49).[详细]
2023-04-08 02:53 分类:问答Why do some floating point numbers appear with a trailing 0
Does anyone know why the numbers 0.001 to 0.009 are rendered to a String with a trailing 0 but other numbers do not. e.g. numbers 0.01 to 0.09 do not.[详细]
2023-04-08 02:52 分类:问答interview question printing a floating point number [duplicate]
This question already has answers here: float to int unexpected behaviour (6 answers) Closed 6 years ago.[详细]
2023-04-07 16:20 分类:问答Javascript's geometrical methods: Zero isn't exactly zero, is it?
In a simple geometric program written in Javascript and Canvas, when I set the angle to 270° (1½π), I expected the Math.cos(θ) to go to zero.The vector is straight down from the ce[详细]
2023-04-07 13:31 分类:问答