# Numbers Questions

Ad

## What is the best way to validate a credit card in PHP?

Given a credit card number and no additional information, what is the best way in php to determine whether or not it is a valid number?

## Can I Set The Number Of Threads From An External FIle in Apache Jmeter?

I have many jmeter scripts that are testing different scenarios and i want to create a configuration file for some common values across my

## Java's L number (long) specification

It appears that when you type in a number in java, the compiler automatically reads it as an integer, which is why when you type in (long)

## convert large values of string to number laravel. (int) gives wrong value

When i do: $var = (int)('5000'); dd($var); //outputs 5000 $query = mymodel::find($id);

## converting an array of arrays of floats to complex numbers

I've got an array of arrays each containing the two parts of a complex number, like this: parts = [[1, 2], [3, 4], [5, 6]] how do i

## How to come up with a normal solution to the problem of brute force?

I came across an interesting problem. the input is a number from 1..n, where n <= 10^9. so you need to make a prime number out of it by

## the value becomes NaN in javascript

I try to iterate over the collection like the following var debitamounttcytotal = 0; var debitamountpcytotal = 0;

## How to remove special characters from ANDROID KEYBOARD without using custom keyboard?

I want user to input only numbers in my edit text in android application.for that i have added android:inputtype="number"

## How to increment the total depending on the original number

Curious to pick people's brain. i'm looking at basically incrementing a total number based on the number i get from a server. i.e. say if i have

## Regex: How to extract a word with a preceding number and exclude numbers and colon after that group

Consider the following strings: 1 post 12:34 4 posts 15:11 deleted 8:46 i need to get the first part with the

Ad

## Set a fixed numerical ration between alternative sorted numbers

So i am working on a large text file made up of rows and rows of numbers, below is just an short excerpt to help with the question, but it could

## Why Date.now() | 0 not same as Date.now()

Int number | 0 will same as source number but why date.now() | 0 not same as date.now()

## Compare decimal strings in Javascript

I have an input of two strings, each of which representing a non-negative rational number in decimal format. given these two strings

## is it possible to round the last 3 digits of a number in c?

I would like to round the last 3 digits of the float number 169786.122 and leaving only 3 digits is it possible to do it with

## How to solve number keyboard errors in Flutter?

Applying the numeric keyboard format in the flutter causes errors. this error causes the keyboard to appear slowly when it first runs.

## How to create a random Number Genertor in Flutter?

I wanted to know how i can create a random number generator. but not the usual, i want to build the following: in the app there

## how to compare two number to find number of corresponding different digits

I have two number 1100 and 1010 then i would like to find out the number of different corresponding digits among them,

## Converting number in sentences to word in python

I am having a text where i have some number in the sentence , i only want to convert the number to word format. how can i solve this . i have

## Input only even numbers in textField Flutter

So, is it way to do textformfield where users only can insert even numbers? now they can't type for example 12 and that's the

## How to convert a very large decimal number to a string?

I want to convert the decimal number 123.456e+304 to the string "123.456e+304" (the position of the decimal point

## How To Solve For Number Input In TextField?

Questions: inputs for day, month: how does the code only allow for 01, 02, 03 instead of just 1, 2, 3? inputs for year: the last

Ad

## How can I make first number of phone number cannot be zero?

My html like this : <input type="number" /> i had validation number, so user only input number. i want the

## How do I add new complex values to my array?

I have made an array of complex numbers that i need to integrate, so i split the vlaues into imagenary and real values, then integrate

## Turkish Identity Number Verification

How can i make sure that the given text is turkish identity number? i have seen

## How to save data from Firebase as a number with Vue.js

I use firebase with vue.js. here i save to the database with this command: saveevent(){ db.collection('events').add({ title:

## Python: Get 6 random numbers with minimum difference

I'm trying to get 6 random generated numbers between 1 and 3600. but i want that the the individual numbers to have a minimum difference of at

## extract a number from a property value

I am trying to create an animation, when a button is pressed, the div have to move to left 300 px by changing the left-margin,and stop. i

## Detect if a number is dividable by 100 in NodeJS

I want to detect if a number is dividable by 100 in nodejs. how can i do this?

## Is there a function for extracting numbers from a string

I'm trying to find out how to get numbers that are in a string. i tried the number(string) function but it returns me a "nan" ...

## Validate if input number is prime

Trying to write a program that checks if a number is prime. wrote the below code, but do not understand why do i have an output of 2 lines:

## flutter finding out the title of the ToDoItem that has the highest price

To-do app class todoitem{ final string id; final string title; final color color; final int price; final

## Why I am not able to plot a complex function (obtained with parsing) with matplotlib?

I am trying to plot a complex numbers function, but i have some problems (i don't usually use matplotlib, so may be a very stupid error). first of

Ad

## How can i make textfield with hyphen at certain places of input number in flutter

I am making the ui in which i have to show the input text field like this:

## Python - Read string from log file

I would like to extract serial_number value from the following python log output: continue? (y/n): initializing

## Finding three integers such that their sum of cosine values become max

There are three integers x, y and z (each of them >= 1) and a given upper bound integer n <

## Wiki example for Arnoldi iteration only works for real matrices?

The wikipedia entry for the arnoldi

## Write a function that returns the square of a number without using *,+ or pow

The task is to write a function that takes n as an input where n is a number (from -32768 to 32768) and returns the square of that number. simple

## React: How can I get the closest number in tens, hundreds, thousands... of a given number?

For some calculations, i need to get the closest number in tens, hundreds, thousands...etc of a given number. examples: 1

## Can anyone please elaborate Number precision and overflow in JavaScript?

I was looking at number.isinteger() on

## Python number with 1000 Separator

Easy task: number = 100123.44 number_formated = "100,123" don't tell me there is no better way than:

## Find Telnumber and spesific format and email in text , im using javascript ReactJs

**input =>** +15556662255 blabla +23334445567 blabla [email protected] blabla [email protected] blabla **i want to output =>**

## PHP(Laravel): Converting Number

I need round a number from 1150 -> 1200 or 1110 -> 1200 or 1340 -> 1400 and so on any help! ty! need fast!

## Generating Relative cyclic sequence of numbers in php?

I want to generate two sequence of numbers. i have two parameters. first: value can be any number between 1-12

Ad

## Select range in SQL

I have a sql database that have invoicenumber column now i need to select range between two numbers, but i don't know what happened.

## Javascript limit input to specific numbers

I wanted to create an input field for a postal code check, i found number ranges to not work, as they arent all sequential: in dresden one

## prime factorization with large numbers in python

Whazzup, having the following problem, i can't get it fixed. handling with numbers having a length around 5 - 52, i wan't to get their

## Add a literal number (three) by 1 (four)

Var t2w = require("numbers2words"); var translator = new t2w("en_us"); const {

## Format number when using Calculation Functions tabulator

Hi i am trying add some number format when sum column value in tabulator (format number for sum function in footer). and this is what i try

## Meaning of this number function with different number values in if blocks

Wondering what this encode_number function means, all of the different numbers. specifically, i know that 32768 is for

## Displaying WooCommerce get_date_created() as ddmmyyyy, not yyyy-mm-dd+time

I'm trying to display a reference number with order on hold for direct bank transactions with woocommerce. i added

## Displaying perfect numbers and their adders

I need help with the program to display first 4 perfect numbers in the standard output and also funciton

## Create list of numbers in Python from list-formatted string stored in file

I have a file that contains a list of numbers in a format exactly how python would print it. it is a complex list and in the file it looks like

## Python and matlab gives different answers

I need to get 3 values from 3 equations as part of an error correcting

## How to get the length of every word in a string

Hi this question needed to be deleted

Ad

## Is there a function in C language that enables me to split numeric output?

Is there a way i can split my output with a separator in c. for instance, i have processed a calculation, and the output is... 10000. is there a

## What do 48 and 87 values refer to when converting hexadecimal to decimal number in C?

I am trying to understand the process of converting a hexadecimal number to its decimal equivalent, in particular when converting each hexadecimal

## How to add two values from a pointer in function?

My teacher said that i must add two complex numbers using a complex type. and i must add these numbers in a function. how to do that? i create

## How to read complex number using complex.h in C?

I want to read from a file two complex numbers (1.1,2) (1.7,3.14) in the beginning i do this

## Trying to multiply two numbers using Standard Multiplication Method and Arrays

I am trying to multiply two numbers kept in two 1d arrays. after i kept them in a 2d array(like we do in standard multiplication), the output

## When c macros are expanded why does the code get so big?

I've been experimenting with c's macros, and decided to expand them to see the replacement. when i supply gcc with -e, i get 800

## Why char is not taken as numeral in C++?

I wrote a code in c, which ran perfectly, i translated it to c++ . there it was giving wrong output. i had an iteration where i used both the

## Javascript round to Closest Biggest value

I need to change 8.34 to 8.4, 27.62 to 27.7 (not 27.6) i came with code so far var a = 3.34 a.tofixed(1) // 8.3 the

## Split a numeric value into single digit spans

I have following code which counts down hours to a certain time. for the css purpose i need the digits to be split into single spans for

## What parameters to set as main loop

Okay, so i have a homework question, which goes as follows: from the array make pairs (b, c) where b is lowest even number, and c is biggest.

## how can i exit the program without it returning a value?

Output is 0 when entered 1001 or something greater than it. it should give 0 when the number isn't abundant and should exit if entered

Ad

## Printing out Numbers between a set Min and Max

I am trying to create a function that takes a set min and max values and then prints out the numbers of a given array that fit between those

## Separate numbers from string to array

Please help me. i need to separate the numbers from the string so that they are written to the array from the beginning of the array.

## input value of numbers form is always 0 when trying to calculate in javascript

I'm trying to calculate a price based on the number input of user. but when i try to get the value of that input field it always says 0. can

## Assuming positive real part of a complex number in Sympy

I cannot figure it out how to assume positive real part of a complex number in sympy. example of an mathematica code: a =

## Python number formatting

I have an issue with formatting number output in python. i found quite some examples how to do it with .format(), but i can not

## How do you store an int number as binary in c?

How do you store an int number as binary in c? int bnumber=22? ```

## Can't convert complex to float Error on Python

I wrote a code for calculating area of triangle a = float(input("enter the first side of triangle: \n")) b = float(input("enter

## Difference between complex matrix multiplication in matlab and python

I'm trying to translate a program from matlab to python and i don't get one piece to work. in this line of the code i'm trying to multiply 2

## How can I split array of Numbers to individual digits in JavaScript?

I have an array const myarr = [ 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106 ] i need to split into

## Is there any simple way to return single value from the list in python?

Let's say we have a list: x = [5, 5, 2, 5, 5, 3, 3, 4, 4]. how can i return the number which happens only once in this list, i.e. 2? this

## how to keep number input as number data type

Let a = prompt ("input value of 'a'", ); let b = prompt ("input value of 'b'", ); alert(a); alert(b); alert(a + b); number(a);

Ad

## C - Using spaces while taking integers from the user

I'm trying to practice some stuff about text files, printing and reading from them. i need to take input from user -maybe their phone number or

## How to add Numbers to String with DOM

I have one task. so if html result give me "Великолепный век 1 сезон 1-24 серия смотреть

## How to create an unique and random number from an array in Javascript

I'm a super beginner in js. i try to create a way to generate random unique number (between 0 and 10) by clicking on a button. i want that this

## Python random module: How can I generate a random number which includes certain digits?

I am trying to generate a random number in python, but i need it to include certain digits. let's say the range i want for it is between 100000

## Need help understanding why I'm getting not-a-number output with computing imaginary Numbers

Function imaginarynumbers(realnum, imaginary) { this.realnum = 0; this.imaginary = 0; this.realnum = (typeof realnum === 'undefined') ?

## Is there a way to represent complex numbers to store in Spark DF?

I have an ndarray of values with dtype numpy.complex128. when i try to create a spark df using these values, i get the

## Replicate Python's complex-number-to-string conversion

Import operator >>> operator.truediv(-5.6, complex(-1, 0)) #eg1 (5.6-0j) >>> operator.truediv(-5.6, complex(0, -1)) #eg2

## Convert a number to Excel’s base 26

Ok, i'm stuck on something seemingly simple. i am trying to convert a number to base 26 (ie. 3 = c, 27 = aa, ect.). i am guessing my problem has

## Limit decimal points in a float

I am trying to limit my decimal places to 2 while printing the value of pi. below is my expression after installing the match module in

## what is function can sum two big numbers php

I'm trying to sum of two large numbers for some reason <?php $a = 50000000000.000000000000000000; $b =

## How to make a number round to eight decimal places and with the different color?

Apologies for asking what looks like a comment asked question but i cannot seem to be able to solve. how do i write 0.2 to round to eight

Ad

## Javascript - convert number to month name

I have a very simple problem but for some reason i can't find the answer for it. label.foreach(function(value){

## Javascript converts Number to undifined when trying to return a number

So i have the following function which converts an array to a list and works fine: function arraytolist (arr) { var list

## Sorting a list in python based on the last number in each string entry

I have a list in python of the following form: mylist = ['r0x94', 'r0x21', 'r0x51'] i want to sort it based on

## How can I print in an f-string an IP address in the dotted binary notation from the output of inet_pton()?

The following code is supposed to take an ip

## Displaying a currency from a number

How can i change a number ( integer ) into a currency format while live input/typing? ex : 45678 => 456.78

## Want to create a tab delimited file with autonumbers

I would like to create a tab delimited file with python and add autonumbering 001 - 002 - 003 - ... to 10 in first column and 011 - 012 - 013 in

## Sorting list of names in Perl

I am trying to learn perl and i am quite new with it probably less than a week. i want to sort a list of names(in this case fruits) and

## Select positives from a list with Generics

I am pretty new here, so excuse me if you do not understand my question.(be nice :d) so basically i have to make a method which select positives

## Method to "convert" odd numbers to even numbers using a specific sequence

I'm recreating an application that has been done in visual basic 6.0 in c#, the problem is that i don't have the source code, and there's a method

## Java and generics. Isn't 0 a Number?

What is that i'm missing about this snippet of code? public class zero<n extends number> { public n zero() { return

## Java - determine the position change of array

I have an understanding problem in my code but in a very specific row which is marked in the code below: public class main {

Ad

## AJAX POST sends numbers as string

I my ajax post request is sending my numeric data to my server as string for some reason... here are my data and the

## VB.NET and ASP.NET DLL line numbers don't appear in production error logs

I can see line numbers in my error logs in our development environment, in which vb.net 2005 and asp.net components are compiled in debug mode,

Ad

## Blog Categories

Ad