Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 16, 2019 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/819126505d0c27bfe5e29627b0bfe954 to your computer and use it in GitHub Desktop.
Save parzibyte/819126505d0c27bfe5e29627b0bfe954 to your computer and use it in GitHub Desktop.
SELECT CAST(9.5 AS SIGNED); # Salida => 10
SELECT CAST(0.5 AS SIGNED); # Salida => 1
SELECT CAST(0.4 AS SIGNED); # Salida => 0
SELECT CAST(1.3335 AS SIGNED); # Salida => 1
SELECT CAST(1.50000 AS SIGNED); # Salida => 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment