How to send the current float value as an SMS?

Does anyone know how to txt a current float value from a gsm shield? My float goes up in increments of 0.2.

I can get it to txt me when ever it gets to a predefined figure by using 'if' control. But I want to be able to txt whatever the figure is at a given time. Whatever code I try always gets rejected.

Please help!!

Thanks

Whatever code I try always gets rejected.

dtostrf() to convert the float to a string.

sprintf() to convert that string and other data to the complete text message.

thanks

but I dont understand where do I put these?

this is my float

myval += 0.2;

but I dont understand where do I put these?

Do you really want me to answer that?

Where do you want to SEND the message?

stuwilson:
Does anyone know how to txt a current float value from a gsm shield? My float goes up in increments of 0.2.

I can get it to txt me when ever it gets to a predefined figure by using 'if' control. But I want to be able to txt whatever the figure is at a given time. Whatever code I try always gets rejected.

Please help!!

Thanks

You haven't told us enough to even begin to help. For example, what do you mean "at a given time"? 12:56 AM on Shrove Tuesday or else what? How are we supposed to guess? How are you keeping track of time? RTC? Please post your code, formatted inside code tags.