Questions tagged as 'range'

2
answers

How to generate the alphabet with white space between the letters?

In Haskell I can generate the alphabet as follows: alfabeto = ['a'..'z'] To display it simply: alfabeto "abcdefghijklmnopqrstuvwxyz" However, I'd like to know how I can put a space between the letters, like this: "a b c d e f g h .....
asked by 17.07.2018 / 16:35
3
answers

Group by interval of days using Linq

How can I use interval grouping with Linq? var dados = new[] { new { Id = 0, dias=100, preco= 25, Nome="etc"}, new { Id = 1, dias=40, preco= 50, Nome="etc1"}, new { Id = 2, dias=50, preco= 55, Nome="etc2"}, new { Id = 3, d...
asked by 08.06.2017 / 21:57
2
answers

How to make a span display the value of a range as it moves it with the mouse? [duplicate]

The function is working, however I want to update the value in <span> as I move with the mouse. Can anyone help? function mostrarPorcentagem(novoValor) { document.getElementById("exibePercent").innerHTML = novoValor; }...
asked by 13.01.2017 / 16:44
1
answer

CSS Stylize input range

I need to make an input range for age setting like this: Ithoughtaboutmakingthe"big" bar with this fixed 20-by-20 range, or a non-fixed bar like in this example , but I'm a beginner and I do not understand what happens, let alone how to cha...
asked by 08.09.2017 / 14:39
2
answers

Ruby - comparison of values between a range or greater than, less than

I'm starting to study programming so, it's a very beginner question. I tested below to learn about case in Ruby , current_time = ARGV.first.to_i case current_time when 0..45 then puts('First Haf') when 46..90 then puts('Second Haf'...
asked by 19.02.2018 / 19:37
1
answer

An exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll but was not handled in user code asp.net

I'm having trouble getting this error resolved. My purpose is to collect data from an Excel file storing it in C # variables, which in turn will be inserted in SQL Server 2012. Reading is done line by line. Here is the code where the error happe...
asked by 24.02.2017 / 10:50
1
answer

Add point to every three numbers (thousands) in a tooltip of the input range?

How do I add a "thousand point" in numbers, R$1000 to R$1.000 in a tooltip of the input range: Code: var mySlider = $("input#valores"); $('#valores-credito, #valores-parcela').slider({ formatter: function(value) { r...
asked by 02.09.2016 / 22:15
1
answer

How to format input with float and range in Python 2?

I need to make an average calculator (student notes) where the entries have a decimal place and are in the range [0, 10]. The outputs must have five decimal places and so far, with what I have been able to describe, the code is: a = float("%.1...
asked by 26.04.2017 / 16:53
1
answer

How to pass range form input values to variables defined in JavaScript to perform conditions? [closed]

I need to get values from a form of type "range" and through the values of every <input> of <form> I want to store in a var of JavaScript within the <html> page itself so that within a function ve...
asked by 26.02.2017 / 20:33
1
answer

Get value from Range button and execute function in real time

I need to have the same value in javascript pure and in real time the same value is taken and depending on it (if it is 1, 2, 3, 4, 5) only the corresponding div appears! var inputvar = document.getElementById("numerodemqs_input"),...
asked by 21.01.2017 / 18:31