If you want this by default, you may need to use a third-party keyboard app that provides this specific feature. I have a Samsung tablet but without an app to specify what you want on an each app, or some sort of a shortcut for that keyboard there is no way to switch on calculator style.
Some forms have this preinstalled on a webpage, so it will choose numbers only based on that, like The_Beave said.

