CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: WARNING!!!!!

  1. #1
    Join Date
    May 1999
    Posts
    20

    WARNING!!!!!

    yo people..


    I get this warning can you help me to solve the problem..

    warning C4244: '=' : conversion from 'double' to 'float', possible loss of data


    thx



  2. #2
    Join Date
    May 1999
    Location
    Yerevan, Armenia
    Posts
    147

    Re: WARNING!!!!!

    To avoid seeing this varning again use double type variables instead of float.

    Zorik Galstyan


  3. #3
    Join Date
    May 1999
    Posts
    92

    Re: WARNING!!!!!

    Because a double uses more bytes than a float, you can loose information if you type case from double to float. Use doubles if the numbers are big, but if they are small. Use (double)x = (double)y;


  4. #4
    Join Date
    May 1999
    Location
    Yerevan, Armenia
    Posts
    147

    Re: WARNING!!!!!

    I think it is worth don't use "float" type anymore and always use "double"



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured