Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBC] Get Digit

Author
Message
Gatorules
15
Years of Service
User Offline
Joined: 17th Dec 2008
Location:
Posted: 1st Apr 2009 03:17
I know that this is an extremely basic snippet but I'm a noob so I thought it was kinda cool. The purpose is to extract the digit of a integer that is specified. For example if you have the number 126 and you need the 2nd digit from the ones place you could say "getdigit(2,126)". The main purpose I found for it was counter animations.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Apr 2009 04:12 Edited at: 1st Apr 2009 04:13
Quote: "[DBC] Get Digit"


Looks like DGDK to me . Anyway, I don't use DGDK so I can't test it, but are you sure



shouldn't be



based on the way you call it here



?

Looks cool though

Wait, in DBP code, couldn't you do this..



<---Spell casting battle game!
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 6th Apr 2009 01:18
Or, in one line:



That's what they WANT you to think...
GIDustin
16
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 6th Apr 2009 04:52
I believe you mean:

Login to post a reply

Server time is: 2024-11-24 22:26:57
Your offset time is: 2024-11-24 22:26:57