I have double vector array ( vector< double > ) and its max value ( 1 ) and min value ( 0 ).
When I did below sub operation, log gives (1.#INF00000000000000000) for max value's index that ( 1 - 1.000000000000001 ) ( double precison ).
How can I prevent this precision error?
log( 1 - array[ i ] );