Code Comments
Programming Forum and web based access to our favorite programming groups.Hello, is there s simple way to get the leading floating point number out of a string with trailing characters like "123.32cm"? Many thanks Cornelius
Post Follow-up to this messagenews.uni-bamberg.de wrote: > Hello, > > is there s simple way to get the leading floating point number out of a > string with trailing characters like "123.32cm"? > Many thanks > > Cornelius > > The following might not solve your problem in general, but how about startin g from: | ?- append(F,[0'.|_],"123.32cm"), name(I,F). F = [49,50,51], I = 123 ? Cheers Bart Demoen
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.