Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Created December 23, 2009 12:24
Show Gist options
  • Save nddrylliog/262490 to your computer and use it in GitHub Desktop.
Save nddrylliog/262490 to your computer and use it in GitHub Desktop.
main: func {
f : Float = 3.14159
d : Int32 = (f& as Int32*)@
printf("f = %f, d = %x\n", f, d)
d2 : Int32 = 0x40490fd0
f2 : Float = (d2& as Float*)@
printf("d2 = %x, f2 = %f\n", d2, f2)
// should work also with Int64/Double
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment