I create a variable in power automate desktop with the name "MyVariable1" and with the value 380.7 and then I want to collect that variable inside a powershell code that I have inside power automate desktop and I use the following instruction inside powershell to do so:
$MyVariable2 = '%MyVariable1%'
And $MyVariable2 is the one that I use inside powershell to send that number to a position X and the movement that makes me is not correct it moves much more to the right of what it would move if I put the number 380.7 manually without variable.
I think that two things can happen:
1. I have not correctly moved the variable from power automate desktop to powershell.
2. To power automate desktop I put the value 380.7 (with dot) but it converts it to 380.7 (with comma) because it uses the decimals with commas instead of with dots maybe it converts it to comma and when I pass it to powershell it doesn't recognize it well.
Does anyone know if it is really one of these two options and could be something else the problem?
Thank you very much for your time!