answersLogoWhite

0

float myVariable = 20.1234;

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is initial variable?

Variable initialization is the assignment of an initial value to a variable.


How to Declare a variable that stores the cumulative sum java?

In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;In Java:You declare the variable like this:int sum;If you want to include decimals, change this to:double sum;To store an initial value, just use the assignment operator:sum = 0;You can combine this with the declaration:double sum = 0.0;To add something to the variable, for example the value of a variable called "x", use one of the following:sum = sum + x;sum += x;


How do you use define in C?

Just type declare then the variable that you desire to assigned a certain constant value on it. Just type declare then the variable that you desire to assigned a certain constant value on it.


What is variable declarations?

A variable declaration is a math or programming term. A variable is an unnamed component. In the problem the wording will declare what the value of the variable is.


What two things must you nor normally specify in a variable declaration?

In most programming languages, you do not need to specify the variable's type and initial value in a variable declaration. The type is usually inferred from the assigned value, and the initial value can be set separately if needed.


What is the difference between declaration and initialization explain with example?

When you want to use a variable, first you declare it: int iNumber; which is basically just stating that you will be using an int type variable named iNumber. Then you should initialise it: iNumber = 0; which is giving the variable an initial value so that it contains a known value rather than just a random value that happens to be in memory. Of course you can use the shorthand: int iNumber = 0; to both declare and initialise using one statement.


How do you declare a variable holding real numbers in pseudocode?

In pseudocode, you can declare a variable holding real numbers by specifying the variable name followed by its type. For example, you might write REAL numberVariable; or DECLARE numberVariable AS REAL;. This indicates that numberVariable will store a real number value. You can then assign a value to it using an assignment statement, such as numberVariable = 3.14;.


How do you declare variables and constants.explain with example?

Depends on the programming language you are using. I will give two simple examples. In Command Prompt and when creating a batch file, you declare a variable by entering the "set" command. You can use different switches to change the type of variable you are declaring. /p makes the variable able to accept user input. /a makes the variable a numerical expression. In Python, you declare a variable just by stating the name of the variable and its value. x = value.


Declare a numerical variable precise and initialize it to the value 1.09388641?

double precise = 1.09388641;


What is variable definition in c language?

variable definition means to declare the variable with its value. for example:- int i=10; this statement is a combination of declaration of integer i and assign its value to it,so it is a definition statement Note: assigning a value is not essential.


Which qualifier is used to declare read-only variable in java?

A variable declared as final can't be modified, once a value is assigned.


What value is assigned to extern variable?

Default initial value of extern integral type variable is zero otherwise null.