Math involves the manipulation of numbers within a program.
How could I check if a number is a perfect square? Speed is of no concern, for now, just working.
python math perfect-squareHave I missed a standard API call that removes trailing insignificant zeros from a number? Ex. var x = 1.234000 // to become 1.234; …
javascript regex math numbersHow can I get a count of the total number of digits of a number in C#? For example, the …
c# math numbersIt seems that many projects slowly come upon a need to do matrix math, and fall into the trap of …
c++ math matrix linear-algebraI am having problems with this Python program I am creating to do maths, working out and so solutions but …
python math syntax continuationint total = (int) Math.ceil(157/32); Why does it still return 4? 157/32 = 4.90625, I need to round up, I've looked around and this …
java mathWhen I calculate int i = -1 % 2 I get -1 in Java. In Python, I get 1 as the result of -1 % 2. …
java math modFrom wikipedia: the cross product is a binary operation on two vectors in a three-dimensional Euclidean space that results in …
language-agnostic math vector 2dFor example, the standard division symbol '/' rounds to zero: >>> 4 / 100 0 However, I want it to return 0.04. …
python python-2.7 math syntax operatorsI was curious to know how I can round a number to the nearest whole number. For instance, if I …
c math int rounding integer-division