On 5/3/2012 10:37 AM, Michael Jackson wrote:
Doesn't make sense to me but, hey if it works. Great.

The array contains the value "6.44569e-302" that is outside the
range "float" can hold so the Mac streams library gives up when
parsing.  Test with this code:

 #include <sstream>
 #include <iostream>
 int main()
 {
   std::istringstream is("6.44569e-302");
   float f; // double works
   if(is >> f)
     {
     std::cout << f << std::endl;
     }
   else
     {
     std::cout << "failed" << std::endl;
     }
   return 0;
 }

-Brad
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to