Mar 26, 2003 #1 ralphtan Technical User Joined Oct 15, 2002 Messages 15 Location SG Anyone know how can I perfrom a type cast where float ptr; short ptr2; ... ptr2 = ptr; can I do this way? if not, what is the proper way to do it? Thanks
Anyone know how can I perfrom a type cast where float ptr; short ptr2; ... ptr2 = ptr; can I do this way? if not, what is the proper way to do it? Thanks
Mar 26, 2003 #2 marsd IS-IT--Management Joined Apr 25, 2001 Messages 2,218 Location US Best creeate an error check but this: ptr2 =(short)ptr; should work in a perfect world with a good compiler. It works with gcc. Upvote 0 Downvote
Best creeate an error check but this: ptr2 =(short)ptr; should work in a perfect world with a good compiler. It works with gcc.