1 2 3 4 5 6
| SELECT CAST(CAST(21456789 as real) as nvarchar(150)), 'grand entier / Real - Cast'
UNION SELECT STR(CAST(21456789 as real),20,7), 'grand entier / real - STR'
UNION SELECT CAST(CAST(CAST(21456789 as real) as numeric(20,7)) as nvarchar(150)), 'grand decimal / real - Cast numeric'
UNION SELECT CAST(CAST(2.1456789 as real) as nvarchar(150)), 'petit decimal / real - Cast'
UNION SELECT STR(CAST(2.1456789 as real),20,7), 'petit decimal / real - STR'
UNION SELECT CAST(CAST(CAST(2.1456789 as real) as numeric(20,7)) as nvarchar(150)), 'petit decimal / real - Cast numeric' |