Jump to content

Codificar Inteiro para String

Recommended Posts


Ve o manual do sprintf(3).

Victarion seized the dusky woman by the wrist and pulled her to him.

Victarion - She will do it. Go pray to your red god. Light your fire, and tell me what you see.

Moqorro's dark eyes seemed to shine.

Moqorro - I see dragons.

Share this post

Link to post
Share on other sites
Rui Carlos

Podes usar a divisão inteira por 10, e o resto da divisão inteira por 10, para ires obtendo os dígitos de um número. Adicionalmente, o logaritmo de base 10 também dá jeito para saberes a dimensão de um número.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.