How can i typecast a symbol to float.Example:I have 1234 and i need to typecast the same to int or float.I tried this"f"$
1234and i got error saying `type
q)“F”$string `1234
1234f
“F”$string`1234
Thanks a lot it worked.I have one more questionWhats the difference between “F”$0 and “f”$0RaghuOn Nov 9, 11:45?am, Tim Rieder <trie…> wrote:> “F”$string1234>>>> On Mon, Nov 8, 2010 at 10:34 PM, Raghuram <gpraghu...> wrote:> > How can i typecast a symbol to float.> > Example:> > I have
1234 and i need to typecast the same to int or float.>> > I tried this> > “f”$1234> > and i got error saying
type>> > –> >
Submitted via Google Groups</gpraghu…></trie…>
upper case letter is used to parse strings. lower case letter is usedto type cast/ parse string into floatq) “F”$“23.54"23.54/type cast real into floatq)type23.54e-8hq)type"f”$23.54e-9hOn Nov 8, 11:16?pm, Raghuram <gpraghu…> wrote:> Thanks a lot it worked.> I have one more question> Whats the difference between “F”$0 and “f”$0>> Raghu>> On Nov 9, 11:45?am, Tim Rieder <trie…> wrote:>> > “F”$string1234>> > On Mon, Nov 8, 2010 at 10:34 PM, Raghuram <gpraghu...> wrote:> > > How can i typecast a symbol to float.> > > Example:> > > I have
1234 and i need to typecast the same to int or float.>> > > I tried this> > > “f”$1234> > > and i got error saying
type>> > > –> > >
Submitted via Google Groups</gpraghu…></trie…></gpraghu…>