Question: I have basically two text which I would like to plus together to get a total.

What I need this to do is :

*price.Text* = 50.50
**addprice.Text** = 140.50

*price.Text* + **addprice.Text**

to get : 191.00

I tried looking everywhere to find how to get this working, Any ideas/suggestions. Much Appreciated.

Answer: 
```
var total = Convert.ToDecimal(price.Text) + Convert.ToDecimal(addPrice.Text);

```

Convert your strings to `decimal` then sum and if you want to convert back to string just: `total.ToString()`
You need to parse those texts into a numbers (floats in this case).

```
float priceNumber = 0;
float addPriceNumber = 0;
if(float.TryParse(price.Text, out priceNumber) && float.TryParse(addprice.Text, out addPriceNumber )) {
    //Here, the priceNumber and addPriceNumber has numbers stored as float
    float result = priceNumber + addPriceNumber;
} else {
    //Error parsing, wrong format of numbers
}

```

Docs: [float.TryParse / Single.TryParse](https://learn.microsoft.com/pl-pl/dotnet/api/system.single.tryparse?view=net-5.0)

Some knowledge about parsing: [Wiki](https://en.wikipedia.org/wiki/Parsing)