Reading file in SD Card

I am using the Library SdFAT to read information from a file and send to “SERIAL”.
When reading the data (like the example below), the values are multiplied by 2.54, I can not turn the reading into an integer value, for example:

v100, 10 will be transformed into a variable containing the value of 100.10 and will then be multiplied by 2.54, ie, the displayed value will be 254.254. Can someone help me?

l1 v100, 10
v200 l2, 50
l3 v120, 2000

The example I’m using is this:

/ / Copy file to serial port
int16_t n;
uint8_t buf [7] / / nothing special about July, just a lucky number.

vl boolean = false;
int mbuf [12];
nvl int = 1;
while ((n = File.read (buf, sizeof (buf)))> 0) (
for (uint8_t i = 0; i <n; i + +)
(
if (vl)
(
mbuf [nvl] + = buf ;

  • nvl + +;*
  • )*

_ if (buf = ‘l’) (_
* vl = true;*
* )*
_ if (buf = ‘’) (
* vl = false;
nvl = 0;
Serial.print (mbuf); / / error*
* )
)
)*
Thanks_