About 50 results
Open links in new tab
  1. Should I cast the result of malloc (in C)? - Stack Overflow

    Although malloc without casting is preferred method and most experienced programmers choose it, you should use whichever you like having aware of the issues. i.e: If you need to compile C program as …

  2. casting - How to cast or convert an unsigned int to int in C? - Stack ...

    Feb 26, 2011 · The real question is what you want to do when/if the value in the unsigned int it out of the range that can be represented by a signed int. If it's in range, just assign it and you're done. If it's out …

  3. 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 …

  4. c# - 'casting' with reflection - Stack Overflow

    Sep 9, 2009 · Note that I cannot assume that the PropertyInfo always represents a long, neither that value is always a decimal. However, I know that value can be casted to the correct type for that …

  5. Regular cast vs. static_cast vs. dynamic_cast - Stack Overflow

    Aug 26, 2008 · Static cast is also used to cast pointers to related types, for example casting void* to the appropriate type. dynamic_cast Dynamic cast is used to convert pointers and references at run-time, …

  6. pandas - Casting from timestamp [us, tz=Etc/UTC] to timestamp [ns ...

    Dec 29, 2021 · Casting from timestamp [us, tz=Etc/UTC] to timestamp [ns] would result in out of bounds timestamp Asked 4 years, 3 months ago Modified 4 years, 3 months ago Viewed 23k times

  7. casting - CAST to DECIMAL in MySQL - Stack Overflow

    I am trying to cast to Decimal in MySQL like this: CAST((COUNT(*) * 1.5) AS DECIMAL(2)) I'm trying to convert the number of rows in a table (times 1.5) to a floating point number with two digits a...

  8. vb.net - Casting in visual basic? - Stack Overflow

    VB actually has 2 notions of casting. CLR style casting Lexical Casting CLR style casting is what a C# user is more familiar with. This uses the CLR type system and conversions in order to perform the …

  9. algorithm - What is the difference between ray tracing, ray casting ...

    May 1, 2021 · I used the term “ray tracer” as this is the one used in the book. I have heard a lot of different terms however and I would be interested to know what exactly is the difference between ray …

  10. Is there any difference between type casting & type conversion?

    Sep 3, 2009 · Generally, casting refers to an explicit conversion, whether it's done by C-style cast (T(v) or (T)v) or C++-style cast (static_cast, const_cast, dynamic_cast, or reinterpret_cast). Conversion is …