Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is this possible? Brute force conversion
#2
This seems to work:

dim f as single = 12.3423
dim i as integer = *cast(integer ptr, @f)

print *cast(single ptr, @i) ' prints 12.3423


edit: wee, 420 posts..
stylin:
Reply


Messages In This Thread
Is this possible? Brute force conversion - by stylin - 01-21-2007, 09:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)