As English is not enough specific in words the search spits out tonns of "around" & "Background" so searching for the possably right post is useless. Same for FLOOR wich resuslts in Floorplans...
Thats why i have to ask.
If i try to round a value in a usercell with FLOOR(user.cell1,0.5) i get a "180.5" as value out of it.
If i try to round a value in a usercell with FLOOR(user.cell1,0) i get a "0" as value out of it.
I don't understand why...
I wold like to get a pure 180 or 181.
same should hapen with 179.8 = 180
or 179.2 = 179
How can i realise that?
Regards, Novski
Have you tried just using the ROUND function, which rounds off a number to the nearest digit? That is, ROUND(179.2,0) and ROUND(179.8,0) result in 179 and 180, respectively.
Search for Visio floor function works...
Here's description: https://msdn.microsoft.com/en-us/library/office/ff766747.aspx
Wapperdude
Thanks, i mentioned the search throug this forum...
I tested the ROUND(number,roundedby) function and can not find out how it works.
In my test it does nothing. I will attach the file. Maybe somebody can tell me what im doing wrong...
Regards, Novski
EDIT: well the only point it does anything is by roundedby = 0, yes "RudySchneider" then it rounds up or down to the full value as you described...
oh now i just came over it. But ther is still another quesiton...
ROUND is only for the digits after the dot. so 18.6 wold round to 19 by ROUND(18.6,0). 17.22 to 17.2 by ROUND(17.22,1)
FLOOR downgrades to the next digit stated. so 18.6 wold FLOOR to 15 by FLOOR(18.6,5). 19.95 to 15 by FLOOR(19.95,5)
What i am searching for is a breaking point by 177 to 175 and 178 to 180 so a more advanced ROUND Function.
Any ideas?
Ah, so you want to ROUND to the nearest increment of 5?
Well, there's more than one way to...
It may be a bit of a forcing function, but one way to accomplish what you're after is something like this:
NUMBER rounded to nearest 5 = 5 * ROUND(NUMBER/5,0)
You Rock! Even it was quite easy i didn't see it...
There are no problems, only opportunities!
Thanks a lot!
Regards, Novski
Browser ID: smf
(is_webkit)
Templates: 1:
Printpage (default).
Sub templates: 4:
init,
print_above,
main,
print_below.
Language files: 1:
index+Modifications.english (default).
Style sheets: 0:
.
Hooks called: 62 (
showintegrate_autoload, cache_get_data, integrate_pre_load, integrate_load_session, integrate_verify_user, cache_get_data, integrate_user_info, integrate_load_board, cache_get_data, integrate_board_info, cache_get_data, integrate_allowed_to_general, integrate_pre_load_theme, cache_get_data, integrate_allowed_to_general, integrate_simple_actions, integrate_allowed_to_general, integrate_load_theme, integrate_pre_log_stats, cache_put_data, integrate_actions, integrate_pre_parsebbc, integrate_bbc_codes, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_menu_buttons, integrate_current_action, integrate_theme_context, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general)
Files included: 25 - 925KB. (
show/home/iw0lkfe3x6cq/public_html/vgforum/index.php, /home/iw0lkfe3x6cq/public_html/vgforum/Settings.php, /home/iw0lkfe3x6cq/public_html/vgforum/cache/db_last_error.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/QueryString.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Auth.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Errors.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Load.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Security.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Compat.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Db-mysql.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApi.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApiInterface.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/APIs/FileBased.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Charset.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/Metadata.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/QuickCheck.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Session.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Logging.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Class-BrowserDetect.php, (Current Theme)/languages/index.english.php, (Current Theme)/languages/Modifications.english.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Printpage.php, (Current Theme)/Printpage.template.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/CaseUpper.php)
Memory used: 776KB.
Tokens:
post-login.
Cache hits: 8: 0.00203s for 22,302 bytes (
showget modSettings: 0.00058s - 19983 bytes, get known_languages: 0.00021s - 1277 bytes, get board_parents-0: 0.00014s - 2 bytes, get permissions:-1: 0.00008s - 50 bytes, get theme_settings-1: 0.00012s - 980 bytes, get log_online-update: 0.00001s - 0 bytes, put log_online-update: 0.00087s - 10 bytes, get menu_buttons--1-english: 0.00002s - 0 bytes)
Cache misses: 2: (
showget log_online-update, get menu_buttons--1-english)
Queries used: 10.
[Show Queries]