$baseValue = Read-Host "Enter the number you want to calculate 20% of" $baseValue = [double]$baseValue $expression = "0.20 * $baseValue" $body = @{ expr = $expression } | ConvertTo-Json $response = Invoke-RestMethod ` -Uri "https://api.mathjs.org/v4/" ` -Method Post ` -ContentType "application/json" ` -Body $body # Extract numeric result $raw = [double]$response.result # Format WITHOUT commas $formatted = "$raw $" Write-Host "Result: $formatted" Write-Host "Summary: $formatted is 20% of $baseValue" Pause