works for decimal without brackets
works for decimal with brackets
works for negative numbers with and without brackets