should help you out Since the sendTextMessage() method only can take one number at a time, you need to execute this method for each number in the list. That being said you should 'loop' through that List. Like this:

for (String number : numbers) {
smsManager.sendTextMessage(numbers, null, message, null, null);
}

like below fixes the issue As I mentioned in the comments use the error checking to do a mass conversion but if you still insist on a formula then here it is.

=IFERROR(INT(A1),A1)

How can I find the amount of decimal places of a number from a list of numbers in a text file

wish help you to fix your issue A text file has the following numbers: 1,2,3.02, 3.234,2.52 , Suppose the input file is something like below. input.txt

1,2,3.02,3.234,2.52

res = []
with open('input.txt') as file:
number_list = file.readline().strip().split(',')
for num in number_list:
sig_fig = 0
if '.' in number:
sig_fig = len(number.split('.')[-1])
res.append(sig_fig)
print(res)

def get_sig_fig(num):
return len(num.split('.')[-1]) if '.' in num else 0
with open('input.txt') as file:
number_list = file.readline().strip().split(',')
res = list(map(get_sig_fig, number_list))
print(res)

Generate a list of unique random numbers where the number should not be same as index of number in list using kdb