Posts by acelent • 286 points
3 posts
-
2
votes4
answers1519
viewsA: Why is 0.1 + 0.05 not equal to 0.15? What solutions can be used in R?
This is due to the conversion of real numbers into decimal to floating-point numbers on a binary basis (according to IEEE 754). In general, this happens when the number is not a sum of exponents of…
-
5
votes3
answers2718
viewsA: Javascript/Nodejs setInterval with programmed start, simple cron style
function cron(callback, startTime, interval, threshold) { function callbackWithTimeout() { var timeout = interval === undefined ? null : setTimeout(callbackWithTimeout, interval); callback(timeout);…
-
5
votes2
answers205
viewsA: What is the difference between Scheme sequels and other languages?
Continuations in Scheme are like increased closures that capture the return stack, the environment and the current run point. In other languages, such as Javascript, continuations are "mere"…
functional-programminganswered acelent 286