Hi

Hope you can assist with a very basic C question. Im trying to print the last two characters of a long obtained from a table. lets say the value is 130. How do i print just the 30.

This is the piece of code:

sprintf(unidades_standar,"%ld:%02ld",standar/60,standar%60)

So in the section after the ':' where the %02ld is, i need this to print the last two decimal values. Hope it makes sense

Cheers