
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
Get the angle whose sine is float value argument in C#
To get the angle whose sine is float value argument, the code is as follows −
Example
using System; public class Demo { public static void Main() { float val1 = 0.1f; float val2 = 8.9f; Console.WriteLine("Angle (val1) = "+(MathF.Asin(val1))); Console.WriteLine("Angle (val2) = "+(MathF.Asin(val2))); } }
Output
This will produce the following output −
Angle (val1) = 0.1001674 Angle (val2) = NaN
Example
Let us see another example −
using System; public class Demo { public static void Main() { float val1 = 1.2f; float val2 = 45.5f; Console.WriteLine("Angle (val1) = "+(MathF.Asin(val1))); Console.WriteLine("Angle (val2) = "+(MathF.Asin(val2))); } }
Output
This will produce the following output −
Angle (val1) = NaN Angle (val2) = NaN
- Related Articles
- Get the arc sine of an angle in Java
- Get the hyperbolic sine of a given value in Java
- What name is given to the ratio of sine of angle of incidence to the sine of angle of refraction?
- Get the absolute value of float, int, double and long in Java
- Return the angle of the complex argument in Python
- What is the maximum value of float in Python?
- Return the angle of the complex argument in degrees in Python
- Return the angle of the complex argument in radians in Python
- How to get the sine of a number in JavaScript?
- Get the Trigonometric inverse sine of the array elements in Python
- Comparing float value in PHP
- Swift Program to find the sine of given radian value
- C++ Program to find the sine of given radian value
- How to find the Arc Sine of a given value in Golang?
- Calculate the absolute value of float values in Numpy

Advertisements