[Solved]little bug, float to char

having been debugging this bug for hours already, can’t see what went wrong.

Here is a working piece of code that turn float to char and print it out to a LCD

  char ftc[17];
  char x[10];
  int Read = analogRead(A0);
  float buffer = Read/1024.0*5.0;

  dtostrf(buffer, 3, 2, x);
  sprintf(ftc, "%s", x);
  lcd.setCursor (0,1); 
  lcd.print (ftc);

Here is my currently working code, literally the same thing, but it doesn’t work. The output is 0;
I understand that if i use int, then the output may be zero because .99 is zero, but I am using float here. The value of average is correct, no problem with it.

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  // Set my LCD I2C address/ pins

int  total;
int count=0;
int average;

void setup() {
  pinMode (A0, INPUT);
  analogReference (INTERNAL);

void loop() {

  int reada=analogRead (A0);
  float buffer= (average/1024)*1.1;
  char x[10];
  dtostrf(buffer, 3, 2, x);
  char printo[17];
  sprintf(printo, "Reading: %s", x);
  lcd.setCursor (0,1); 
  lcd.print (printo);     
  lcd.setCursor (0,0); 
  lcd.print (average);   

float buffer= (average / 1024[glow=red,2,300].0[/glow] )*1.1;

[quote author=Coding Badly link=msg=2076603 date=1423116244]

float buffer= (average / 1024[glow=red,2,300].0[/glow] )*1.1;



float buffer= (average/1024)*1.1;

What is the value of (average/2014), if average is less than 1024 (which it ALWAYS is...)?

Regards, Ray L.