i have a string array with values { "01.0", "01.4", "01.5", "0.20", "02.5", "02.6", "03.0", "03.2" }
how do i filter integer values (1,2,3) from this using C#?
i have a string array with values { 01.0, 01.4, 01.5, 0.20, 02.5, 02.6,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First do a select to convert the string values to decimals. Then use the Remainder function to find which values have a zero remainder when divided by 1. That should get you only integer values.