answersLogoWhite

0

to pretend our assumption correct.. i,e.. if we gave integers at the beginning of the program and then if we want to get our result in float , we us the method called typecasting by keeping float in braces in the condition or writing integer as float , means 5 as 5.0.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Why do use typecasting in java?

Type casting is used to convert from one datatype to the other


Is Javascript better than other scripting languages for web?

This is a very complicated issue but javascript was created to look like java but to be easier to use by nonprogrammers. This is probably one of the most desired traits of the javascript over other languages. javascript doesnot provide typecasting whereas java provides typecasting mechanism.


What has the author Paul Hayden Duensing written?

Paul Hayden Duensing has written: 'Stereo-types' 'Some types of note' 'Fourth biennial American Typecasting Fellowship conference' -- subject(s): American Typecasting Fellowship 'On type'


When the director deliberately puts someone who does not appear to be right for the part in a role is known as?

typecasting


Is Dustin Hoffman is one example of an actor who has been caught in the typecasting trap?

false


What invention in 1456 made newspaper production much easier?

Johannes Gutenberg's invention. He was the first in the West to print using movable type. He introduced typecasting using a matrix, and was the first to use a press.


What type of programs use PC Cast?

PC Cast is used for type casting in C and C++ programming. Typecasting is making a variable of one type, such as an int, act like another type, a char, for one single operation.


Typecasting the process by which an actor gets cast in a narrow range of almost identical roles always enhances an actors growth as an artist?

False


What is explicit typecasting in C plus plus programming?

int i = 42; char c = ( char ) i; // explicit cast double d = i; // implicit cast


What is typecasting in java?

typecasting is; in simple language converting form one type to another type. for example. we have the following types in INTEGER 1. byte 2. short 3. int 4. long byte consist of 1 8bits, short consist of 2 8bits, int consist of 4 8bits and long 8 8bits. now to think of this u can store a small box in a big box; but u cant do the other way round. to do the other way round u need to cut the big box into small box dimensions. and then place it. this is wht TYPECASTING will do. so i can store the numbers in INTEGER type if it falls in the range. the following is the range of each 1. byte=-128 to 127 2.short= -32768 to 32767 etc.. so the point is if i have byte a; short b; byte c; c=a+b; this will give me an error. as i am trying to store big value in small size. to do this i will have to typecast it. i.e c= (byte)a+(byte)b; the words in the bracket suggest type casted into. this is typecasting. to know more abt java i found out this amazing channel on youtube. its called as SLIDENEARD. Its a channel dedicated to java programming issues. i hope this helps your purpose.


What is the difference between Typecast and Typedef?

Typecasting is to make a variable of one type, act like another type for one single operation. Type-def is to assign alternative names to existing types.


How you can change data type in PHPwrite a script in PHP that change the string data type in numeric data type?

If you will read typecasting on php, you will know more on this. <?php $str = "10"; $num = (int)$str; ?>