# [PowerShell], 56 bytes

Takes a single number as a string; outputs 0 for other, 3 for integer, and 4 for float

<!-- language-all: lang-powershell -->

    ("$args"-match"^-?(0|[1-9]\d*)(\.\d+)?$")+$matches.Count

[Try it online!][TIO-l0qww7xu]

[PowerShell]: https://github.com/TryItOnline/TioSetup/wiki/Powershell
[TIO-l0qww7xu]: https://tio.run/##XZFdb4IwFIav5VcY0g0YlsD0ZjGNLmYmu5gu81KdqXj8WBAYbbMlwG9npUWdJuScntPnPR80TX4gY3uIogpt26SdV7aJaLZjJj5SHu7NTzyw/WIe4KflYvPg2AtvsXGdATIdFykCmDdKRMyr0kAZMBHxN5rKSkPbmvI9ZFbH0t9rzGGn4nGUUG45BuLAOFPsMJ@I41qOQqQu8HxfYtj3aicjy@m//KYQctiQXtm5gnuPNarMFde94QLo6mIQ1gfcxIC1c1USB6qlq92ETrSkmUMaL5DGVz39q3Z@Kff5UPvrjU7rFXe50UKxHkTeoJXXTCXT0Mi1UN@eSv5TFe26SAudsXv5WGh1STGXzN9nI8F4cpyuv6R@Ocxf41RwglaXIW/69Z9DLmhEmiL9mQhDYOwWw/B9IkYRZeywPYSUH5KYXB583hDL0miVRnn@FcWYV38 "PowerShell – Try It Online"

# [PowerShell] (Alternate Regex), 56 bytes

<!-- language-all: lang-powershell -->

    ("$args"-match"^-?((?!0)\d+|0)(\.\d+)?$")+$matches.Count

[Try it online!][TIO-l0r4hk6p]

[PowerShell]: https://github.com/TryItOnline/TioSetup/wiki/Powershell
[TIO-l0r4hk6p]: https://tio.run/##XZFdb4IwFIav5Vc40g0IQsr0zjS6mJl4MV3mpTpT6/FjQWC0ZEuA385KizpNyDk9p897PmgS/0DKDxCGFdq1STuvbBPRdM9N70QFO5if3sC2Bw/YWW7dAjv20pcHZ4BMx0WKAO6P4iwSVWmgFHgWijeayEpD25qJA6RWx9LfJBKwV/E4jKmwHAMJ4IIrdphPs9NGjkKkLvAxlpiH/drJyHL6r78JMAFb0is7N3DvuUaVueG6d1wAXV0MWH3wmhg87VyV9ALV0tVuSqda0swhjR9Ig1VPfNMOl3KfD7W/3ui8XvGYGy0U6UHkDVr7zVQyDY1cC/XtueQ/VdGui7TQBXuSj4XW1xR3yeJ9Psq4iE@zzZfUr4b5JEoyQdD6OuRdv/4LExkNSVOkP88YA87vMQ@@z8QopJwfd0dGxTGOyPXBFw2xKo1WaZSXX1GMRfUH "PowerShell – Try It Online"