Mark, On this occasion I need to convert a 4 digit Hex to a decimal, so that I can use it in the range widget, because we cant generate a range of hex numbers.
Hence this issue https://github.com/Jermolene/TiddlyWiki5/issues/5177 I think I can do it but if you know how please share. Tones On Tuesday, 1 December 2020 at 06:37:40 UTC+11 Mark S. wrote: > Just for fun. Convert 0-255 to Hex. > > > *<$vars hexlist="0 1 2 3 4 5 6 7 8 9 A B C D E F">* > *<$list filter="[range[31,40]]" variable=dec>* > *<$list filter="[<dec>divide[16]trunc[]add[1]]" variable="byte">* > *<$list filter="[<dec>remainder[16]add[1]]" variable="bit">* > *<$list > filter="[enlist<hexlist>nth<byte>]=[enlist<hexlist>nth<bit>]+[join[]]" > variable="hex1">* > *<<dec>> <<hex1>> <br/>* > *</$list></$list></$list></$list>* > *</$vars>* > > On Monday, November 30, 2020 at 3:09:46 AM UTC-8 TiddlyTweeter wrote: > >> >> *So.* My query is whether there might be a way to feed hex numbers >> (convert to decimal first?) to Range so we could at least feed in hex even >> if the number crunching is digital? >> >> >> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dff217f3-e285-4fee-b4bb-fbfb6f6443a5n%40googlegroups.com.

