## How can I get the middle from two numbers?

could someone please tell me if I´m on the right way or if I´m doing it totally wrong? How could I do it easier? I ´m thankful for any helpful tips I also get that i & mm cannot be resolved to a …

## I need to write difficult palindrome

That’s my example. String are given. Implement a function – detectPalindrom, that can detect palindrome string. Given argument not an string – return ‘Passed argument is not a string’. Given string …

## How to convert number to float in PHP

I need to convert both int and float to float, not string. I tried to convert the number to float with floatval function. But floatval(int) returns int. For example: floatval(100) returns 100 I need …

## Check the last digit of a number

I was doing some basic linear search exercises (I’ve been coding for 2 months or so) with javascript and stumbled upon the following problem: I get input from the user that goes to an array and the …

## What is the Javascript’s highest value that can be safely used in a bitmask?

Let’s say I want to create a bitmask in Javascript. I would toggle a bit on like this: mask |= (1 << bit); clear a bit like this: mask &= ~(1 << bit); and check if a bit is set like ...

## Can I say eight-gon, nine-gon and ten-gon instead of octa-, nona-, and deca-gon?

As a non-native English speaker I struggle with Greek prefixes. Am I allowed to use just normal English numbers in place of them? Is it natural? Or do I have to learn how those Greek prefixes work at …

## How to change a string of numbers, spaces, and commas, to an arraylist of integers

I want to figure out how to take a string of numbers, spaces, and commas, and turn it into an arraylist of integers. For example, the input is 1, 2, 3, 4, 11, 23 and the output would be an arraylist …

## Extract Numbers from Array mixed with strings – Javascript

I have an array from strings and numbers. I need to sort the numbers or better to extract only the numbers in another array. Here is the example: const myArr = [‘Prihodi 23456 danaci 34 razhodi …

## strange number of repetitions in for loop

I wrote this little program to calculate pi. While playing with the code and trying to find the most exact result, I found a point where my computer couldn’t calalculate a result. It could do …

## How can I generate a random number in a certain range?

How can I create an app that generates a random number in Android using Eclipse and then show the result in a TextView field? The random number has to be in a range selected by the user. So, the user …