python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Repeating decimal being represented as 1?
I am new to C++ and when writing a program, I've found that two equivalent expressions are returning different values when I call the floor function. I assume that it has something to do with how the ...
user_289389232
Votes: 0
Answers: 0
Strange result in deducting from a Decimal number Truncated or Floored version of the same
Upon trying in simple Console App, with a code like the following, the result found to be quite something unexpected as per the clip following in the end.
Code Used
double A = 1234567.8991;
Console.Wr...
Faraz Ahmed Qureshi
Votes: 0
Answers: 0
Either round or truncate pandas column values to 2 decimals, based on floor/ceil conditions
I have a data frame that I need to convert specifically to two decimal place resolution based on the following logic:
if x (in terms of the value with more than two decimals places) > math.floor(x...
Jake Walther
Votes: 0
Answers: 2
Calculation bug in R
I noticed, that the following check is giving FALSE in R:
(1000*0.6/24)==(1000*(0.6/24))
[1] FALSE
as follow up the floor function is giving different results:
floor(1000*0.6/24)
[1] 25
floor(1000*...
John
Votes: 0
Answers: 3