<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title>Bing: Casting Float to Int in Java</title><link>http://www.bing.com:80/search?q=Casting+Float+to+Int+in+Java</link><description>Search results</description><image><url>http://www.bing.com:80/s/a/rsslogo.gif</url><title>Casting Float to Int in Java</title><link>http://www.bing.com:80/search?q=Casting+Float+to+Int+in+Java</link></image><copyright>Copyright © 2026 Microsoft. All rights reserved. These XML results may not be used, reproduced or transmitted in any manner or for any purpose other than rendering Bing results within an RSS aggregator for your personal, non-commercial use. Any other use of these results requires express written permission from Microsoft Corporation. By accessing this web page or using these results in any manner whatsoever, you agree to be bound by the foregoing restrictions.</copyright><item><title>Should I cast the result of malloc (in C)? - Stack Overflow</title><link>https://stackoverflow.com/questions/605845/should-i-cast-the-result-of-malloc-in-c</link><description>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 C++ (Although it is a separate language) you must cast the result of use malloc.</description><pubDate>Thu, 23 Apr 2026 05:42:00 GMT</pubDate></item><item><title>c# - Direct casting vs 'as' operator? - Stack Overflow</title><link>https://stackoverflow.com/questions/132445/direct-casting-vs-as-operator</link><description>Direct Casting Types don't have to be strictly related. It comes in all types of flavors. Custom implicit/explicit casting: Usually a new object is created. Value Type Implicit: Copy without losing information. Value Type Explicit: Copy and information might be lost. IS-A relationship: Change reference type, otherwise throws exception.</description><pubDate>Thu, 23 Apr 2026 06:25:00 GMT</pubDate></item><item><title>Casting variables in Java - Stack Overflow</title><link>https://stackoverflow.com/questions/5289393/casting-variables-in-java</link><description>Casting in Java isn't magic, it's you telling the compiler that an Object of type A is actually of more specific type B, and thus gaining access to all the methods on B that you wouldn't have had otherwise. You're not performing any kind of magic or conversion when performing casting, you're essentially telling the compiler "trust me, I know what I'm doing and I can guarantee you that this ...</description><pubDate>Sat, 18 Apr 2026 07:43:00 GMT</pubDate></item><item><title>casting - Converting double to integer in Java - Stack Overflow</title><link>https://stackoverflow.com/questions/6468730/converting-double-to-integer-in-java</link><description>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 will be cast to an long which will truncate any decimal places. But after rounding, there will not be any fractional parts remaining. Here are the docs from Math.round(double): Returns the closest long to ...</description><pubDate>Mon, 20 Apr 2026 10:39:00 GMT</pubDate></item><item><title>Casting objects in Java - Stack Overflow</title><link>https://stackoverflow.com/questions/5306835/casting-objects-in-java</link><description>Casting can be used to clearly state that you are calling a child method and not a parent method. So in this case it's always a downcast or more correctly, a narrowing conversion.</description><pubDate>Wed, 22 Apr 2026 09:47:00 GMT</pubDate></item><item><title>What exactly is a type cast in C/C++? - Stack Overflow</title><link>https://stackoverflow.com/questions/7558837/what-exactly-is-a-type-cast-in-c-c</link><description>Not only that, but it offers more restrictive explicit casts, such as static_cast, dynamic_cast, reinterpret_cast, and const_cast, each of which further restricts the explicit cast to only a subset of possible conversions, reducing the potential for casting errors.</description><pubDate>Thu, 23 Apr 2026 11:33:00 GMT</pubDate></item><item><title>Regular cast vs. static_cast vs. dynamic_cast - Stack Overflow</title><link>https://stackoverflow.com/questions/28002/regular-cast-vs-static-cast-vs-dynamic-cast</link><description>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, generally for the purpose of casting a pointer or reference up or down an inheritance chain (inheritance hierarchy). dynamic_cast (expression)</description><pubDate>Fri, 24 Apr 2026 07:00:00 GMT</pubDate></item><item><title>java - What is the difference between up-casting and down-casting with ...</title><link>https://stackoverflow.com/questions/23414090/what-is-the-difference-between-up-casting-and-down-casting-with-respect-to-class</link><description>What is the difference between up-casting and down-casting with respect to class variable? For example in the following program class Animal contains only one method but Dog class contains two methods, then how we cast the Dog variable to the Animal Variable.</description><pubDate>Tue, 21 Apr 2026 15:53:00 GMT</pubDate></item><item><title>What are the rules for casting pointers in C? - Stack Overflow</title><link>https://stackoverflow.com/questions/17260527/what-are-the-rules-for-casting-pointers-in-c</link><description>There are rules about casting pointers, a number of which are in clause 6.3.2.3 of the C 2011 standard. Among other things, pointers to objects may be cast to other pointers to objects and, if converted back, will compare equal to the original.</description><pubDate>Sat, 25 Apr 2026 19:23:00 GMT</pubDate></item><item><title>casting - How to cast or convert an unsigned int to int in C? - Stack ...</title><link>https://stackoverflow.com/questions/5129498/how-to-cast-or-convert-an-unsigned-int-to-int-in-c</link><description>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 of range, that'll give an unspecified result so you'll probably want to reduce it the right range first, or assign it to a larger signed type.</description><pubDate>Sun, 19 Apr 2026 10:19:00 GMT</pubDate></item></channel></rss>