Ok, I tried it like below and it worked:
aa = rgbs << XPath("//AxisBox");
format1 = aa[1][2] << Get Format;
format2 = aa[2][2] << Get Format;
bb = 3.1415926535;
Format(bb, format1[1], format1[2], format1[3]);
Format(bb, format2[1], format2[2], format2[3]);
I have two GBs, Pulling formats from them yields:
{"Scientific", 12}
{"Fixed Dec", 12, 2}
When using as I showed it correctly formats the number, even though format1 has only two members in the list. I guess it has an internal Try() or something.
Format(bb, format1[1], format1[2], format1[3]);
/*:
"3.1415927e+0"
//:*/
Format(bb, format2[1], format2[2], format2[3]);
/*:
"3.14"
Any way to just use pulled format without spelling it by member?