Linas,
U are right about the comma's.
Put some console output in the BasicSCMUTest and it seems the printf
functions put a comma separator for decimal number. (BasicSCMUTest.cxxtest
line 162 & 164)
Not sure whats causing this, but this seems to be the cause of all my
issues :(
I had copied the scheme string i use in my c++ test application from
debugging the unit test (standalone app also bit easier to debug), so thats
why i had the comma's
Also made a simple test to see if this is related to my system settings,
but this turns out to print with dot instead of comma ...
#include <stdio.h>
#include <iostream>
int main()
{
float x = 0.2f;
float y = 0.3f;
char buff[500];
snprintf(buff, 500, ("%f, %f"), x, y);
std::cout << buff << std::endl;
return 0;
}
result: 0.200000, 0.300000
when i add setlocale(LC_ALL, ""); to my little test, i also get comma
formatting
--
You received this message because you are subscribed to the Google Groups
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit
https://groups.google.com/d/msgid/opencog/39c40b22-f558-443e-8934-74ebb5196f75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.