Manu
Manu

Reputation: 5784

How to overcome floating point exception error

modulus = number[mul1_count] % prime_array[prime1_count];

when my code executes this line i get Floating point exception, how to overcome this ,both the arrays are of type int

Upvotes: 1

Views: 2204

Answers (1)

ismail
ismail

Reputation: 47592

Make sure prime_array[prime1_count] is not zero.

Upvotes: 3

Related Questions