6502

Italy

gripho.it

Age: 48

Programmer... some quite outdated infos on my website (that is abandonware because I've yet to find a way to create time, so I had to take decisions instead).

9h
revised Returning a reference to an object pointed through its interface
deleted 1 character in body
10h
comment Should I worry about precision when I use C++ mathematical functions with integers?
@PascalCuoq: they don't exist in 64-bit (double precision), correct. I changed the example to a case working with real C++ implementations.
10h
revised Should I worry about precision when I use C++ mathematical functions with integers?
added 29 characters in body
10h
revised Should I worry about precision when I use C++ mathematical functions with integers?
added 775 characters in body
11h
answered Should I worry about precision when I use C++ mathematical functions with integers?
22h
answered Overloading [] in subclassed C++ string
23h
answered What is the Pythonic way to get last not-None value from a list
1d
comment What is the minimal non-zero value Math.random() can return in javascript
@Jongware: you can get uniform spread by fixing exponent and randomly choosing the 52 mantissa bits. Later you can normalize the representation.
1d
answered Image registration b-spline opencv
1d
comment What is the minimal non-zero value Math.random() can return in javascript
Point taken anyway. Edited the answer to what is (probably) what an implementation can do to extract uniform random numbers.
1d
revised What is the minimal non-zero value Math.random() can return in javascript
added 315 characters in body
1d
comment What is the minimal non-zero value Math.random() can return in javascript
On which part you don't agree? The one in which I'm saying the standard doesn't cover this point or the part in which I'm stating what is the smallest number that can be represented by a double-precision number?
1d
comment What is the minimal non-zero value Math.random() can return in javascript
What I find amazing is that if you pass that decimal string to a string to float conversion the result is correct (even if of course it's one of the test cases they use).
1d
answered What is the minimal non-zero value Math.random() can return in javascript
1d
comment How do I use an array of pointers in main?
@user2899211: It depends on what do you want to support with your skip list. But given an element how do you know if the only pointer used is 0 or if also 1 is used? An array doesn't know the number of "valid" elements in it; it simply has a fixed predetermined size. You may want to look for std::vector if you need an array that can be resized dynamically.
1d
answered How do I use an array of pointers in main?
2d
revised paint app in canvas
added 2 characters in body
2d
revised C++ 'Random' crashes when using delete
added 448 characters in body
2d
answered C++ 'Random' crashes when using delete
2d
answered Enable/disable button based on accepting the 2 checkbox conditions
1 2 3 4 5