Skip to content

cotrVarNum

Creates a float variable

Aliases:

  • cotrVarNum
  • number
  • float
  • floatVariable
  • variableFloat
  • variableNumber
  • numberVariable

cpp

double myDouble = value;

go

var variableName float64 = variableValue

haskell

let myNum :: NumType =3

javascript

let myNumber = 0;

javascriptreact

let myNumber = 0;

kotlin

var myDouble = 0.0

perl

mymyFloat = 0.0;

php

myFloat = 0.0;

powershell

Terminal window
myDouble = 0.0

python

myInt = 0

ruby

my_float = 0.0

rust

let myFloat = 0.0;

shellscript

Terminal window
# Assign a numeric value:
myNumber=10

swift

var myDouble = 0.0;