Sin Function

Category: GUI » Visual Basic 6 » Function

Description: Returns a Double specifying the sine of an angle Syntax: Sin(number)

ParametersDescription
number Required. A valid numeric expression that expresses an angle in radians

Return Data Type: Double Usage / Example Code: xxx

StatementResult / ValueRemark / Note
sin(1) 0.841470984807897  
sin(53) 0.395925150181834  
sin(5.3) -0.832267442223901  
sin(-1) -0.841470984807897  
sin(0) 0  
sin(unknown) 0 Uninitialized variable
sin(null) Error Run-time error '94': Invalid use of Null
sin(True) -0.841470984807897  
sin(false) 0  
sin() Error Compile error: Argument not optional

Related Articles:

Tags: Math Functions, vb6