Answers for "c# parse decimal double"

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
0

C# how to parse double to int

int res = Convert.ToInt32(val);
Posted by: Guest on April-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language