![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to calculate fractional power using C#?
To calculate fractional power in C#, use the Math.Pow method.
The following sets 5 to the power 3.7 −
double res = Math.Pow(5, 3.7);
The following is the complete example showing how to calculate fractional power in C# −
Example
using System; class Program { static void Main() { double res = Math.Pow(5, 3.7); Console.WriteLine("Result = {0}", res); Console.ReadLine(); } }
Output
Result = 385.646164200006
Advertisements