You can use PHP to add a class to the span tag for the first 3/4 characters (suppose you use php to create these floating point numbers) and another class for something after that,
Then just add the classes to your CSS file to highlight as you wish.
AFAIK there are no CSS selectors to do what you need, nth selectors are more suitable for tags, classes and identifiers than single characters.
EDIT: In javascript, this can be done using foo.charAt (N);
So load your line in var:
var foo=[number generation code]; var foo0=foo.charAt(0); var foo1=foo.charAt(1); var foo2=foo.charAt(2); var foo3=foo.charAt(3);
Then you can print the characters in the appropriate place in the code.
Myles gray
source share