Skip to content

Strange issue with floating point #27

@zim32

Description

@zim32

It makes me crazy )

When I'm trying to print vertices it rounds them to int.

printf("%.6f\n", curMesh.Vertices[j].Position.Y);

Shows me

Loaded mesh Cube_Cube.0012.076665
-2,000000
-2,000000
2,000000
-2,000000

When I set breakpoint and start debuging it display normal output

Loaded mesh Cube_Cube.0012.076665
-2.076665
-2.076665
2.076665
-2.076665

WTF?? )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions