python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
IEEE integer standard
IEEE 754 defines floating point standards for computers. Is there such a similar standard for integers? Whenever I search for something like that, I end up at IEEE 754!
C/C++ defines char, short, int,...

Sourav Kannantha B
Votes: 0
Answers: 0
Most idiomatic way to convert a Float value to a string without a decimal point in Kotlin
I'd like to convert a Float value to a String, but without a decimal point. For example, for the following code:
fun toDecimalString(value: Float): String {
// TODO
}
fun main() {
println(&...

hopia
Votes: 0
Answers: 2
How to remove last decimal digit from float in python?
Say I have an arbitrary float x = 123.123456 and want to remove the last n decimal digits from the float i.e. n = 1 then x = 123.12345, n = 2 then x = 123.1234 and so on. How can this be achieved in p...

MShakeG
Votes: 0
Answers: 1
In C++, can the sum of two squared float be negative?
I have a snippet of code that compute the sum of two squared floats:
float a, b, c;
// assign some random float to b and c
a = b*b+c*c;
Can a, the sum of the two squared floats, be negative?
The orig...

Alessandro Jacopson
Votes: 0
Answers: 1