About 50 results
Open links in new tab
  1. casting - Converting double to integer in Java - Stack Overflow

    Jun 24, 2011 · is there a possibility that casting a double created via Math.round() will still result in a truncated down number No, round() will always round your double to the correct value, and then, it …

  2. Casting to void* and Back to Original_Data_Type*

    Jul 29, 2025 · Casting to void* removes all type safety. If you use reinterpret_cast or static_cast to cast from a pointer type to void* and back to the same pointer type, you are actually guaranteed by the …

  3. c++ - What does casting to `void` really do? - Stack Overflow

    Dec 15, 2015 · Casting a variable expression to void to suppress this warning has become an idiom in the C and later C++ community instead because the result cannot be used in any way (other than …

  4. c - Casting a function pointer to another type - Stack Overflow

    Casting between function pointers and regular pointers (e.g. casting a void (*)(void) to a void*). Function pointers aren't necessarily the same size as regular pointers, since on some architectures they might …

  5. Casting interfaces for deserialization in JSON.NET

    Learn how to cast interfaces for deserialization in JSON.NET with examples and solutions provided by the community on Stack Overflow.

  6. How to control casting of null int field to varchar in sql server?

    First of all I would like to know how does CAST work with NULL fields and how does it behave when the value is NULL? For example in the expression: (CAST(INT_FIELD as nvarchar(100)) what happens ...

  7. Casting int to bool in C/C++ - Stack Overflow

    Jul 22, 2015 · I'm wondering about casting in the reverse direction... In the code below, all of the following assertions held true for me in .c files compiled with Visual Studio 2013 and Keil µVision 5. …

  8. Casting volatile variable in c - Stack Overflow

    char my_function (int example); I use this function in multiple cases, sometimes the argument it receives is a volatile variable and sometimes a non-volatile variable. That cause some warnings when I …

  9. C# Inheritance & Casting - Stack Overflow

    C# Inheritance & Casting Ask Question Asked 15 years, 3 months ago Modified 5 years, 8 months ago

  10. Should I use static_cast or reinterpret_cast when casting a void* to ...

    Nov 21, 2008 · Both static_cast and reinterpret_cast seem to work fine for casting void* to another pointer type. Is there a good reason to favor one over the other?