hi, I must have from a number similar to this:
145,235 I must visualize this: 145
Another example:
1,98 I must visualize this: 1
I must draw from numbers with comma, an integer Number
THX end sorry for my bad english
Printable View
hi, I must have from a number similar to this:
145,235 I must visualize this: 145
Another example:
1,98 I must visualize this: 1
I must draw from numbers with comma, an integer Number
THX end sorry for my bad english
are the commas decimals?
I must only have the number before the comma
13,46 is the number that I have found from a expression, but I must only have in a counter the number 13 not 13,46
Try the String Tokenizer extension.
Action: Split string "1,98" with delimiters ","
Then use the expression Val(Element$("String tokenizer",0)) to get the number 1.
It's unclear whether you're saying the numbers are stored as strings or numbers - if they're strings then Jamie's way will work, if they're just numbers then you can use the Floor(number goes here) function in the expression editor to display only the part before the decimal point/comma.
I have put the files inside the directory, but he is not inserted inside with the other extensions. Is the file compatible with MMF2? I have never had problems to install the extenzionis but this String tokenizer it is not present in the list of the objects.
You must be doing something wrong, it has to show up when you put the MFX file in \Extensions into MMF2\Extensions (Don't forget the other files in the corresponding directories though)!
I have insert this file in this directory
StringTokenizer.mfx in DATA/RUNTIME
end this file StringTokenizer.mfx inside dir EXTENSION butin sot present in object list
If there are two, put the smaller one in data/runtime, and the larger in extensions. If you get it backwards the extension just won't show up.
I have done well everything and I have inserted the files in the correct directories...
And you have the newest version of MMF2? build 248? A lot of extensions only work with a recent (not necessarily newest, but recent) build.
I'm pretty sure he's just asking how to convert decimals to integers. In many countries a comma is used instead of a decimal point. (http://en.wikipedia.org/wiki/Decimal_separator)
daniele - Try DavidN's suggestion. Put Floor() around your expression. Which will round the number down.
For example:
Floor(1.98) = 1
Floor(13.46) = 13