Skip to content

SC floating point constants #33

Description

@ksherlock
float f = 1.0f / 16.0f;
float ff = 0.0625f;

double d = 1.0 / 16.0;
double dd = 0.0625;

extended x = 1.0 / 16.0;
extended xx = 0.0625;

float generates an invalid value. double and extended are correct.

f:
$000000: 3F4E C4EC

ff:
$000000: 3FDC 0000   

d:
$000000: 3FB0 0000 0000 0000 

dd:
$000000: 3FB0 0000 0000 0000 

x:
$000000: 3FFB 8000 0000 0000 0000

xx:
$000000: 3FFB 8000 0000 0000 0000

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