From the c++ compiler VS2019 I'm using, you can use std::setprecision(n) where n is an integer denoting the length after decimal but then this function does not exist on sololearn
Also c++ unlike most other languages does not provide a direct method that let you round up a number to a specific decimal place.
However, a quick mathematical approach is to use
res = std::round(n * 100) / 100;
n = priceT (in your code)
You must include the <cmath> header file, that's where the std::round function is from