Binary Decimal Convertor - Example lazarus / 8-Other ---------------------------------------------------------------------- BenJones · 2013-05-22 22:39 Hi this is a little project I made today. This allows you to convert decimal to binary and binary to decimal hope it may come in handy all code commented. ---------------------------------------------------------------------- exdatis · 2013-05-23 05:26 Thank you very much! Regards ---------------------------------------------------------------------- Bart · 2013-05-23 07:25 Didn't we already have a IntToBin function somewhere? (Can't check right now, no fpc where I am ATM) Bart ---------------------------------------------------------------------- BenJones · 2013-05-23 07:52 QuoteDidn't we already have a IntToBin function somewhere? (Can't check right now, no fpc where I am ATM) lol not sure dude I never checked, I just like inventing the wheel, but I will check if they do have inbuild functions. ---------------------------------------------------------------------- JuhaManninen · 2013-05-23 08:00 Quote from: BenJones on May 23, 2013, 09:52:25 amlol not sure dude I never checked, I just like inventing the wheel, but I will check if they do have inbuild functions. Yes, in StrUtils. Even Delphi has it there. Instead of inventing the wheel you could take one of our > 1500 bug reports, learn the relevant code, fix the bug and send a patch. What do you think? ---------------------------------------------------------------------- BenJones · 2013-05-23 10:42 Code: [Select]Instead of inventing the wheel you could take one of our > 1500 bug reports, learn the relevant code, fix the bug and send a patch. What do you think? Yes I think I like to do something like that when I have learnt a bit more on lazarus Just not trying to get back into lazarus as I been away form it from a while. ---------------------------------------------------------------------- Leledumbo · 2013-05-23 11:35 I've written a 36-base (0..9,A..Z) converter function, it's simple enough to generalize.