*: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The '''*''' mathematical operator performs the multiplication of two values. ''Syntax:'' return_value = number1 * number2 {{PageDescription}} * Multiplication can use any two literal or variable numerical type values. * Multiplication of two negative numbers returns a positive result. One negative number will always return a negative value. * Return values may exceed certain numerical variable type limits creating an "Overflow" error. * Division and...")
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:




''Syntax:'' return_value = number1 * number2
{{PageSyntax}}
: {{Parameter|return_value}} = {{Parameter|number1}} [[*]] {{Parameter|number2}}




{{PageDescription}}
{{PageDescription}}
* Multiplication can use any two literal or variable numerical type values.
* Multiplication can use any two literal or variable numerical type values.
* Multiplication of two negative numbers returns a positive result. One negative number will always return a negative value.  
* Multiplication of two negative numbers returns a positive result. One negative number will always return a negative value.
* Return values may exceed certain numerical variable type limits creating an [[ERROR Codes|"Overflow" error.]]
* Return values may exceed certain numerical variable type limits creating an [[ERROR Codes|"Overflow" error.]]
* Division and multiplication operations are performed before addition and subtraction in Qbasic's order of operations.
* Division and multiplication operations are performed before addition and subtraction in QBasic's order of operations.
 
 
 
''See also:''


[[Mathematical Operations]]


{{PageSeeAlso}}
* [[Mathematical Operations]]




{{PageNavigation}}
{{PageNavigation}}

Latest revision as of 22:30, 31 January 2023

The * mathematical operator performs the multiplication of two values.


Syntax

return_value = number1 * number2


Description

  • Multiplication can use any two literal or variable numerical type values.
  • Multiplication of two negative numbers returns a positive result. One negative number will always return a negative value.
  • Return values may exceed certain numerical variable type limits creating an "Overflow" error.
  • Division and multiplication operations are performed before addition and subtraction in QBasic's order of operations.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link