Answers for "How to convert a Decimal to a Double in C#?"

C#
1

How to convert a Decimal to a Double in C#?

// Example 1
double transperancy = trackBar1.Value/5000;
this.Opacity = decimal.ToDouble(transperancy);

// Example 2 - with inline temp
this.Opacity = decimal.ToDouble(trackBar1.Value/5000);
Posted by: Guest on July-24-2021

Code answers related to "How to convert a Decimal to a Double in C#?"

C# Answers by Framework

Browse Popular Code Answers by Language