NAME
digitrunevalue – rune to digit value

SYNOPSIS
#include <u.h>
#include <libc.h>
int digitrunevalue(Rune r)

DESCRIPTION
Digitrunevalue converts a rune to its value as a decimal digit. To convert any coded script's digits to an integer
t = 0;
while(isdigitrune(r = *s++))
t = t*10 + digitrunevalue(r);

SOURCE
/sys/src/libc/port/runetype.c

SEE ALSO
isdigitrune(2)

BUGS
Only understands base 10, and doesn't handle some scattered digits, notibly `².'