Subversion Repositories Projects

Rev

Rev 307 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 307 Rev 314
Line 30... Line 30...
30
#else
30
#else
31
//    sleep(Time);
31
//    sleep(Time);
32
#endif
32
#endif
33
}
33
}
Line 34... Line 34...
34
 
34
 
35
QString ToolBox::get_Float(long Wert, long Count)
35
QString ToolBox::get_Float(long Wert, int Count)
36
{
36
{
Line -... Line 37...
-
 
37
    QString Temp, s_Wert;
-
 
38
 
-
 
39
    s_Wert = QString("%1").arg(Wert);
-
 
40
 
-
 
41
    Temp = s_Wert.left(s_Wert.length() - Count) + QString(".") + s_Wert.right(Count);
37
    QString Temp;
42
 
38
 
43
/*
39
    if (Wert > 0)
44
    if (Wert > 0)
40
        Temp = "";
45
        Temp = "";
Line 41... Line 46...
41
    else
46
    else
42
        Temp = "-";
47
        Temp = "-";
43
 
48
 
44
    Temp = Temp + QString("%1").arg(Wert / Count) + "." + QString("%1").arg(Wert % Count);
49
    Temp = Temp + QString("%1").arg(Wert / Count) + "." + QString("%1").arg(Wert % Count);
Line 45... Line 50...
45
 
50
*/